diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp index c06637492c..c025cf0a88 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp @@ -30,12 +30,12 @@ void ArrayConstructor::initialize(Realm& realm) define_direct_property(vm.names.prototype, realm.global_object().array_prototype(), 0); u8 attr = Attribute::Writable | Attribute::Configurable; - define_native_function(vm.names.from, from, 1, attr); - define_native_function(vm.names.isArray, is_array, 1, attr); - define_native_function(vm.names.of, of, 0, attr); + define_native_function(realm, vm.names.from, from, 1, attr); + define_native_function(realm, vm.names.isArray, is_array, 1, attr); + define_native_function(realm, vm.names.of, of, 0, attr); // 23.1.2.5 get Array [ @@species ], https://tc39.es/ecma262/#sec-get-array-@@species - define_native_accessor(*vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable); + define_native_accessor(realm, *vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable); define_direct_property(vm.names.length, Value(1), Attribute::Configurable); } |