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
commit 18cfb9218a
Notes: sideshowbarker 2024-07-19 07:12:09 +09:00

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