mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibJS: Convert Value::invoke and VM::call to ThrowCompletionOr
This commit is contained in:
parent
a90107b02a
commit
ab594e5f2f
35 changed files with 196 additions and 328 deletions
|
@ -28,7 +28,7 @@ template<typename... Args>
|
|||
{
|
||||
VERIFY(job_callback.callback);
|
||||
auto& callback = *job_callback.callback;
|
||||
return vm.call(callback, this_value, args...);
|
||||
return TRY_OR_DISCARD(vm.call(callback, this_value, args...));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue