|
@@ -30,8 +30,6 @@ void ObjectConstructor::initialize(GlobalObject& global_object)
|
|
|
// 20.1.2.19 Object.prototype, https://tc39.es/ecma262/#sec-object.prototype
|
|
|
define_direct_property(vm.names.prototype, global_object.object_prototype(), 0);
|
|
|
|
|
|
- define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
|
|
|
-
|
|
|
u8 attr = Attribute::Writable | Attribute::Configurable;
|
|
|
define_native_function(vm.names.defineProperty, define_property, 3, attr);
|
|
|
define_native_function(vm.names.defineProperties, define_properties, 2, attr);
|
|
@@ -55,6 +53,8 @@ void ObjectConstructor::initialize(GlobalObject& global_object)
|
|
|
define_native_function(vm.names.create, create, 2, attr);
|
|
|
define_native_function(vm.names.hasOwn, has_own, 2, attr);
|
|
|
define_native_function(vm.names.assign, assign, 2, attr);
|
|
|
+
|
|
|
+ define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
|
|
|
}
|
|
|
|
|
|
ObjectConstructor::~ObjectConstructor()
|