From 3a8bd2fecbdca72dccf8d01173d310cb43792788 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Mon, 11 May 2020 16:27:09 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Experimentally implement shared workers --- lib/shared-workers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/shared-workers.js b/lib/shared-workers.js index b53733a6f..6eb09c893 100644 --- a/lib/shared-workers.js +++ b/lib/shared-workers.js @@ -18,6 +18,8 @@ function launchWorker({filename, initialData}) { const id = `shared-worker/${++sharedWorkerCounter}`; const worker = new Worker(LAUNCHER, { + // Ensure the worker crashes for unhandled rejections, rather than allowing undefined behavior. + execArgv: ['--unhandled-rejections=strict'], workerData: { filename, id,