From a81bce8c2a5d7f3abee4957cf18615f1d574e286 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 1 May 2020 10:52:15 +0100 Subject: [PATCH] LibJS: Make Array.length non-configurable This was incorrect, it's only 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 0bda3706a5..42186508fc 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, Attribute::Configurable | Attribute::Writable); + put_native_property("length", length_getter, length_setter, Attribute::Writable); } Array::~Array()