mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00: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
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