From 633f604c471a958ed6210b2dc4fe609407f3e627 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 12 Jun 2021 01:19:07 +0100 Subject: [PATCH] LibJS: Fix attributes of Promise.prototype This was missing a 0 at the end to make it non-writable, non-enumerable, non-configurable. --- Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;