summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/JobCallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/JobCallback.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/JobCallback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/JobCallback.h b/Userland/Libraries/LibJS/Runtime/JobCallback.h
index 8be1854abd..a9d95607b3 100644
--- a/Userland/Libraries/LibJS/Runtime/JobCallback.h
+++ b/Userland/Libraries/LibJS/Runtime/JobCallback.h
@@ -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...));
}
}