diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-13 01:01:27 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-13 01:01:27 +0100 |
commit | 4794e6b0daf0b9b0caa9019198f0ce2e8e035a98 (patch) | |
tree | a6370129524fdb5f858a1190272cfbeccd908977 /Userland | |
parent | a40e5b579a0e2c99e57e72b07d5c944dbb4e5c0c (diff) | |
download | serenity-4794e6b0daf0b9b0caa9019198f0ce2e8e035a98.zip |
LibJS: Fix Promise.length attributes
This was missing an 'Attribute::Configurable' and falling back to the
default attributes.
Diffstat (limited to 'Userland')
-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 1c619bcb24..2fee8bb656 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp @@ -27,7 +27,7 @@ void PromiseConstructor::initialize(GlobalObject& global_object) // 27.2.4.4 Promise.prototype, https://tc39.es/ecma262/#sec-promise.prototype define_property(vm.names.prototype, global_object.promise_prototype(), 0); - define_property(vm.names.length, Value(1)); + define_property(vm.names.length, Value(1), Attribute::Configurable); u8 attr = Attribute::Writable | Attribute::Configurable; // TODO: Implement these functions below and uncomment this. |