diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-23 20:56:28 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-23 23:59:13 +0300 |
commit | ab594e5f2f60af7301d4a9e138d113389b25d40d (patch) | |
tree | d25f095a4881fb1cd82110e1c083279411b30fa7 /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | a90107b02a4e8501593b582da2fe46cad123b372 (diff) | |
download | serenity-ab594e5f2f60af7301d4a9e138d113389b25d40d.zip |
LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ReflectObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |