summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-06-12 01:19:07 +0100
committerLinus Groh <mail@linusgroh.de>2021-06-12 01:19:07 +0100
commit633f604c471a958ed6210b2dc4fe609407f3e627 (patch)
tree9b724e1a4819b665d54b8ce56067a2bb1bd1733b /Userland/Libraries
parent1d7514d51e323be193ac8846da5c25ec3a53ce14 (diff)
downloadserenity-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.cpp2
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;