1
0
Fork 0
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:
Linus Groh 2021-06-12 01:19:07 +01:00
parent 1d7514d51e
commit 633f604c47
Notes: sideshowbarker 2024-07-18 12:23:00 +09:00

View file

@ -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;