diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-12 01:19:07 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-12 01:19:07 +0100 |
commit | 633f604c471a958ed6210b2dc4fe609407f3e627 (patch) | |
tree | 9b724e1a4819b665d54b8ce56067a2bb1bd1733b /Userland/Libraries | |
parent | 1d7514d51e323be193ac8846da5c25ec3a53ce14 (diff) | |
download | serenity-633f604c471a958ed6210b2dc4fe609407f3e627.zip |
LibJS: Fix attributes of Promise.prototype
This was missing a 0 at the end to make it non-writable, non-enumerable,
non-configurable.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp index 2dbb436de8..fb637981e9 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp @@ -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; |