Selaa lähdekoodia

LibJS: Set Array length attributes to "Configurable | Writable"

mattco98 5 vuotta sitten
vanhempi
commit
18cfb9218a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Libraries/LibJS/Runtime/Array.cpp

+ 1 - 1
Libraries/LibJS/Runtime/Array.cpp

@@ -42,7 +42,7 @@ Array* Array::create(GlobalObject& global_object)
 Array::Array(Object& prototype)
 Array::Array(Object& prototype)
     : 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()
 Array::~Array()