mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
LibJS: Make Array.length non-configurable
This was incorrect, it's only writable.
This commit is contained in:
parent
65dbe17dd7
commit
a81bce8c2a
Notes:
sideshowbarker
2024-07-19 07:08:21 +09:00
Author: https://github.com/linusg
Commit: a81bce8c2a
Pull-request: https://github.com/SerenityOS/serenity/pull/2047
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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, Attribute::Configurable | Attribute::Writable);
|
put_native_property("length", length_getter, length_setter, Attribute::Writable);
|
||||||
}
|
}
|
||||||
|
|
||||||
Array::~Array()
|
Array::~Array()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue