diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-02-11 13:41:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 13:41:56 +0100 |
commit | 2fa0096821cd04334210fcae6f54f85d304dc17a (patch) | |
tree | f4c76302e48861e2d7cf802feab9f3d560fd1c9c /runtime/js/99_main.js | |
parent | 2f2c778a074d0eff991c6c22da54429de3de6704 (diff) |
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.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r-- | runtime/js/99_main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 5a4d7e989..fb5de250c 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -676,7 +676,7 @@ delete Object.prototype.__proto__; numCpus = cpuCount; registerErrors(); - pollForMessages(); + globalThis.pollForMessages = pollForMessages; const internalSymbol = Symbol("Deno.internal"); |