mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibJS: Add a name property to the proxy revoker anonymous function
As per the specification this should an empty string.
This commit is contained in:
parent
5319694510
commit
d577678658
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ JS_DEFINE_NATIVE_FUNCTION(ProxyConstructor::revocable)
|
|||
return js_undefined();
|
||||
});
|
||||
revoker->define_direct_property(vm.names.length, Value(0), Attribute::Configurable);
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue