summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
index 66936bc157..3b4671d884 100644
--- a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
@@ -31,28 +31,28 @@ void ObjectConstructor::initialize(Realm& realm)
define_direct_property(vm.names.prototype, realm.global_object().object_prototype(), 0);
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);
- define_native_function(vm.names.is, is, 2, attr);
- define_native_function(vm.names.getOwnPropertyDescriptor, get_own_property_descriptor, 2, attr);
- define_native_function(vm.names.getOwnPropertyDescriptors, get_own_property_descriptors, 1, attr);
- define_native_function(vm.names.getOwnPropertyNames, get_own_property_names, 1, attr);
- define_native_function(vm.names.getOwnPropertySymbols, get_own_property_symbols, 1, attr);
- define_native_function(vm.names.getPrototypeOf, get_prototype_of, 1, attr);
- define_native_function(vm.names.setPrototypeOf, set_prototype_of, 2, attr);
- define_native_function(vm.names.isExtensible, is_extensible, 1, attr);
- define_native_function(vm.names.isFrozen, is_frozen, 1, attr);
- define_native_function(vm.names.isSealed, is_sealed, 1, attr);
- define_native_function(vm.names.preventExtensions, prevent_extensions, 1, attr);
- define_native_function(vm.names.freeze, freeze, 1, attr);
- define_native_function(vm.names.fromEntries, from_entries, 1, attr);
- define_native_function(vm.names.seal, seal, 1, attr);
- define_native_function(vm.names.keys, keys, 1, attr);
- define_native_function(vm.names.values, values, 1, attr);
- define_native_function(vm.names.entries, entries, 1, attr);
- 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_native_function(realm, vm.names.defineProperty, define_property, 3, attr);
+ define_native_function(realm, vm.names.defineProperties, define_properties, 2, attr);
+ define_native_function(realm, vm.names.is, is, 2, attr);
+ define_native_function(realm, vm.names.getOwnPropertyDescriptor, get_own_property_descriptor, 2, attr);
+ define_native_function(realm, vm.names.getOwnPropertyDescriptors, get_own_property_descriptors, 1, attr);
+ define_native_function(realm, vm.names.getOwnPropertyNames, get_own_property_names, 1, attr);
+ define_native_function(realm, vm.names.getOwnPropertySymbols, get_own_property_symbols, 1, attr);
+ define_native_function(realm, vm.names.getPrototypeOf, get_prototype_of, 1, attr);
+ define_native_function(realm, vm.names.setPrototypeOf, set_prototype_of, 2, attr);
+ define_native_function(realm, vm.names.isExtensible, is_extensible, 1, attr);
+ define_native_function(realm, vm.names.isFrozen, is_frozen, 1, attr);
+ define_native_function(realm, vm.names.isSealed, is_sealed, 1, attr);
+ define_native_function(realm, vm.names.preventExtensions, prevent_extensions, 1, attr);
+ define_native_function(realm, vm.names.freeze, freeze, 1, attr);
+ define_native_function(realm, vm.names.fromEntries, from_entries, 1, attr);
+ define_native_function(realm, vm.names.seal, seal, 1, attr);
+ define_native_function(realm, vm.names.keys, keys, 1, attr);
+ define_native_function(realm, vm.names.values, values, 1, attr);
+ define_native_function(realm, vm.names.entries, entries, 1, attr);
+ define_native_function(realm, vm.names.create, create, 2, attr);
+ define_native_function(realm, vm.names.hasOwn, has_own, 2, attr);
+ define_native_function(realm, vm.names.assign, assign, 2, attr);
define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
}