mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibJS: Fix .length attributes of various native functions
Namely the Proxy revocation, Promise resolving, Promise then/catch finally, and Promise GetCapabilitiesExecutor functions. They were all missing an explicit 'Attribute::Configurable' argument and therefore incorrectly used the default attributes (writable, enumerable, configurable).
This commit is contained in:
parent
631d36fd98
commit
d1c109be96
Notes:
sideshowbarker
2024-07-18 12:08:21 +09:00
Author: https://github.com/linusg
Commit: d1c109be96
4 changed files with 6 additions and 5 deletions
|
@ -79,7 +79,7 @@ JS_DEFINE_NATIVE_FUNCTION(ProxyConstructor::revocable)
|
|||
proxy.revoke();
|
||||
return js_undefined();
|
||||
});
|
||||
revoker->define_property(vm.names.length, Value(0));
|
||||
revoker->define_property(vm.names.length, Value(0), Attribute::Configurable);
|
||||
|
||||
auto* result = Object::create(global_object, global_object.object_prototype());
|
||||
result->define_property(vm.names.proxy, proxy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue