mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:38:12 +00:00
LibJS: Set correct "length" of Object constructor
This commit is contained in:
parent
85582953c6
commit
d007e8d00f
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ ObjectConstructor::ObjectConstructor()
|
|||
: NativeFunction("Object", *interpreter().global_object().function_prototype())
|
||||
{
|
||||
put("prototype", interpreter().global_object().object_prototype(), 0);
|
||||
put("length", Value(1), Attribute::Configurable);
|
||||
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
put_native_function("defineProperty", define_property, 3, attr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue