mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibJS: Convert create_data_property_or_throw() to ThrowCompletionOr
This commit is contained in:
parent
bb2499cd7a
commit
364dd42fc8
30 changed files with 148 additions and 167 deletions
|
@ -84,8 +84,8 @@ JS_DEFINE_NATIVE_FUNCTION(ProxyConstructor::revocable)
|
|||
revoker->define_direct_property(vm.names.name, js_string(vm, String::empty()), Attribute::Configurable);
|
||||
|
||||
auto* result = Object::create(global_object, global_object.object_prototype());
|
||||
result->create_data_property_or_throw(vm.names.proxy, proxy);
|
||||
result->create_data_property_or_throw(vm.names.revoke, revoker);
|
||||
MUST(result->create_data_property_or_throw(vm.names.proxy, proxy));
|
||||
MUST(result->create_data_property_or_throw(vm.names.revoke, revoker));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue