diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp index 9359a92afd..6564178d65 100644 --- a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp @@ -31,8 +31,8 @@ void BigIntConstructor::initialize(Realm& realm) define_direct_property(vm.names.prototype, realm.global_object().bigint_prototype(), 0); u8 attr = Attribute::Writable | Attribute::Configurable; - define_native_function(vm.names.asIntN, as_int_n, 2, attr); - define_native_function(vm.names.asUintN, as_uint_n, 2, attr); + define_native_function(realm, vm.names.asIntN, as_int_n, 2, attr); + define_native_function(realm, vm.names.asUintN, as_uint_n, 2, attr); define_direct_property(vm.names.length, Value(1), Attribute::Configurable); } |