mirror of
https://github.com/denoland/deno.git
synced 2024-11-15 16:43:44 -05:00
4786e1d92d
The panic was caused by the lack of an error class mapping for futures::channel::TrySendError, but it shouldn't have been throwing an error in the first place - when a worker has terminated, postMessage should just return. The issue was that the termination message hadn't yet been recieved, so it was carrying on with trying to send the message. This adds another check on the Rust side for if the channel is closed, and if it is the worker is treated as terminated.
3 lines
230 B
Text
3 lines
230 B
Text
[WILDCARD]error: Uncaught (in worker "") Cannot resolve module "file:///[WILDCARD]cli/tests/workers/doesnt_exist.js".
|
|
error: Uncaught (in promise) Error: Unhandled error event reached main worker.
|
|
at Worker.#poll ([WILDCARD])
|