From 18cfb9218a620c6214aab38065b0ae0220229c6f Mon Sep 17 00:00:00 2001 From: mattco98 Date: Tue, 28 Apr 2020 19:32:55 -0700 Subject: [PATCH] LibJS: Set Array length attributes to "Configurable | Writable" --- Libraries/LibJS/Runtime/Array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()