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

This commit is contained in:
mattco98
2020-04-28 19:32:55 -07:00
committed by Andreas Kling
parent da0ab16f01
commit 18cfb9218a

View File

@@ -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()