You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new Worker(new URL("./b.js", import.meta.url).href, {type: "module"});
b.js:
new Worker(new URL("./c.js", import.meta.url).href, {type: "module"});
c.js:
throw Error();
Run deno run --allow-read a.js
Problem
Panic with this error.
error: Uncaught (in worker "") Error
throw Error();
^
at file:///home/arch/c.js:1:7
thread 'worker-0' panicked at 'coding error: either js is polling or the worker is terminated', runtime/web_worker.rs:531:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
at Worker.#pollControl (deno:runtime/js/11_workers.js:261:23)
Expected
I want to occurs JS Error similar to case of only one worker.
error: Uncaught (in worker "") Error
throw Error();
^
at file:///home/arch/b.js:1:7
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
at Worker.#pollControl (deno:runtime/js/11_workers.js:261:23)
Repro step
a.js:
b.js:
c.js:
deno run --allow-read a.js
Problem
Panic with this error.
Expected
I want to occurs JS Error similar to case of only one worker.
Environment
The text was updated successfully, but these errors were encountered: