From ab594e5f2f60af7301d4a9e138d113389b25d40d Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Thu, 23 Sep 2021 20:56:28 +0300 Subject: LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr --- Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibJS/Runtime/ReflectObject.cpp') diff --git a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp index b15131a6d4..ed2694fdee 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -65,7 +65,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::apply) // 3. Perform PrepareForTailCall(). // 4. Return ? Call(target, thisArgument, args). - return vm.call(target.as_function(), this_argument, move(args)); + return TRY_OR_DISCARD(vm.call(target.as_function(), this_argument, move(args))); } // 28.1.2 Reflect.construct ( target, argumentsList [ , newTarget ] ), https://tc39.es/ecma262/#sec-reflect.construct -- cgit v1.2.3