mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibJS: Make Array.length non-configurable
This was incorrect, it's only writable.
This commit is contained in:
committed by
Andreas Kling
parent
65dbe17dd7
commit
a81bce8c2a
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user