diff options
author | mattco98 <matthewcolsson@gmail.com> | 2020-04-28 19:32:55 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-29 09:02:29 +0200 |
commit | 18cfb9218a620c6214aab38065b0ae0220229c6f (patch) | |
tree | f3295afe4016bc13000d566fddc060b853aa467a | |
parent | da0ab16f011bec0c4da862db80dc53c2122e04f2 (diff) | |
download | serenity-18cfb9218a620c6214aab38065b0ae0220229c6f.zip |
LibJS: Set Array length attributes to "Configurable | Writable"
-rw-r--r-- | Libraries/LibJS/Runtime/Array.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Array.cpp b/Libraries/LibJS/Runtime/Array.cpp index 2bf7f2ef33..0bda3706a5 100644 --- a/Libraries/LibJS/Runtime/Array.cpp +++ b/Libraries/LibJS/Runtime/Array.cpp @@ -42,7 +42,7 @@ Array* Array::create(GlobalObject& global_object) Array::Array(Object& prototype) : Object(&prototype) { - put_native_property("length", length_getter, length_setter); + put_native_property("length", length_getter, length_setter, Attribute::Configurable | Attribute::Writable); } Array::~Array() |