summaryrefslogtreecommitdiff
path: root/runtime/js/11_workers.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r--runtime/js/11_workers.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js
index 2b908b9f8..59ae7371d 100644
--- a/runtime/js/11_workers.js
+++ b/runtime/js/11_workers.js
@@ -14,7 +14,6 @@
} = window.__bootstrap.primordials;
const webidl = window.__bootstrap.webidl;
const { URL } = window.__bootstrap.url;
- const { Window } = window.__bootstrap.globalInterfaces;
const { getLocationHref } = window.__bootstrap.location;
const { log, pathFromURL } = window.__bootstrap.util;
const { defineEventHandler } = window.__bootstrap.webUtil;
@@ -265,14 +264,7 @@
} /* falls through */
case 2: { // Error
if (!this.#handleError(data)) {
- if (globalThis instanceof Window) {
- throw new Error("Unhandled error event reached main worker.");
- } else {
- core.opSync(
- "op_worker_unhandled_error",
- data.message,
- );
- }
+ throw new Error("Unhandled error event in child worker.");
}
break;
}