mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
compat: support --compat in web workers (#13629)
Adds another callback to WebWorkerOptions that allows to execute some modules before actual worker code executes. This allows to set up Node global using std/node.
This commit is contained in:
parent
2f2c778a07
commit
2fa0096821
11 changed files with 194 additions and 19 deletions
|
@ -676,7 +676,7 @@ delete Object.prototype.__proto__;
|
|||
numCpus = cpuCount;
|
||||
registerErrors();
|
||||
|
||||
pollForMessages();
|
||||
globalThis.pollForMessages = pollForMessages;
|
||||
|
||||
const internalSymbol = Symbol("Deno.internal");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue