mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 03:43:00 -05:00

This commit adds support for spawning Web Workers in self-contained binaries created with "deno compile" subcommand. As long as module requested in "new Worker" constructor is part of the eszip (by means of statically importing it beforehand, or using "--include" flag), then the worker can be spawned.
5 lines
91 B
Text
5 lines
91 B
Text
worker.js imported from main thread
|
|
Starting worker
|
|
Hello from worker!
|
|
Received 42
|
|
Closing
|