mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibJS: Convert get_binding_value() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
@@ -829,7 +829,7 @@ Object* create_mapped_arguments_object(GlobalObject& global_object, FunctionObje
|
||||
object->parameter_map().define_native_accessor(
|
||||
PropertyName { index },
|
||||
[&environment, name](VM&, GlobalObject& global_object_getter) -> Value {
|
||||
return environment.get_binding_value(global_object_getter, name, false);
|
||||
return MUST(environment.get_binding_value(global_object_getter, name, false));
|
||||
},
|
||||
[&environment, name](VM& vm, GlobalObject& global_object_setter) {
|
||||
MUST(environment.set_mutable_binding(global_object_setter, name, vm.argument(0), false));
|
||||
|
||||
Reference in New Issue
Block a user