summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authormattco98 <matthewcolsson@gmail.com>2020-04-28 19:32:55 -0700
committerAndreas Kling <kling@serenityos.org>2020-04-29 09:02:29 +0200
commit18cfb9218a620c6214aab38065b0ae0220229c6f (patch)
treef3295afe4016bc13000d566fddc060b853aa467a /Libraries
parentda0ab16f011bec0c4da862db80dc53c2122e04f2 (diff)
downloadserenity-18cfb9218a620c6214aab38065b0ae0220229c6f.zip
LibJS: Set Array length attributes to "Configurable | Writable"
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibJS/Runtime/Array.cpp2
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()