summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-10-01 10:30:55 +0100
committerGitHub <noreply@github.com>2021-10-01 11:30:55 +0200
commitb354eaa2475a16f66e99efc82bebf5bd620406e4 (patch)
treeaa8d15ba548032e44834bb736b1d32882bf60688 /runtime/js/99_main.js
parentc0b6c0eea59f0bea0ab12b2949a7c37c1a774293 (diff)
fix(runtime/js/workers): throw errors instead of using an op (#12249)
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 9bbc06971..152430a76 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -157,10 +157,7 @@ delete Object.prototype.__proto__;
globalDispatchEvent(errorEvent);
if (!errorEvent.defaultPrevented) {
- core.opSync(
- "op_worker_unhandled_error",
- e.message,
- );
+ throw e;
}
}
}