1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibJS: Make Array.length non-configurable

This was incorrect, it's only writable.
This commit is contained in:
Linus Groh 2020-05-01 10:52:15 +01:00 committed by Andreas Kling
parent 65dbe17dd7
commit a81bce8c2a
Notes: sideshowbarker 2024-07-19 07:08:21 +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, Attribute::Configurable | Attribute::Writable);
put_native_property("length", length_getter, length_setter, Attribute::Writable);
}
Array::~Array()