mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibJS: Fix attributes of Promise.prototype
This was missing a 0 at the end to make it non-writable, non-enumerable, non-configurable.
This commit is contained in:
parent
1d7514d51e
commit
633f604c47
Notes:
sideshowbarker
2024-07-18 12:23:00 +09:00
Author: https://github.com/linusg
Commit: 633f604c47
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ void PromiseConstructor::initialize(GlobalObject& global_object)
|
|||
auto& vm = this->vm();
|
||||
NativeFunction::initialize(global_object);
|
||||
|
||||
define_property(vm.names.prototype, global_object.promise_prototype());
|
||||
define_property(vm.names.prototype, global_object.promise_prototype(), 0);
|
||||
define_property(vm.names.length, Value(1));
|
||||
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue