From 4128f95903435114cfba93dadcdaeabf44780037 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 29 Oct 2021 00:13:55 +0300 Subject: LibJS: Convert BigIntConstructor functions to ThrowCompletionOr --- Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp') diff --git a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp index 8f818e8468..9ae52c2abd 100644 --- a/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/BigIntConstructor.cpp @@ -29,8 +29,8 @@ void BigIntConstructor::initialize(GlobalObject& global_object) // TODO: Implement these functions below and uncomment this. // u8 attr = Attribute::Writable | Attribute::Configurable; - // define_old_native_function(vm.names.asIntN, as_int_n, 2, attr); - // define_old_native_function(vm.names.asUintN, as_uint_n, 2, attr); + // define_native_function(vm.names.asIntN, as_int_n, 2, attr); + // define_native_function(vm.names.asUintN, as_uint_n, 2, attr); define_direct_property(vm.names.length, Value(1), Attribute::Configurable); } @@ -65,13 +65,13 @@ ThrowCompletionOr BigIntConstructor::construct(FunctionObject&) } // 21.2.2.1 BigInt.asIntN ( bits, bigint ), https://tc39.es/ecma262/#sec-bigint.asintn -JS_DEFINE_OLD_NATIVE_FUNCTION(BigIntConstructor::as_int_n) +JS_DEFINE_NATIVE_FUNCTION(BigIntConstructor::as_int_n) { TODO(); } // 21.2.2.2 BigInt.asUintN ( bits, bigint ), https://tc39.es/ecma262/#sec-bigint.asuintn -JS_DEFINE_OLD_NATIVE_FUNCTION(BigIntConstructor::as_uint_n) +JS_DEFINE_NATIVE_FUNCTION(BigIntConstructor::as_uint_n) { TODO(); } -- cgit v1.2.3