Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! fixup! Experimentally implement shared workers
  • Loading branch information
novemberborn committed May 11, 2020
1 parent 7f99462 commit 3a8bd2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shared-workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a8bd2f

Please sign in to comment.