diff options
author | 2023-08-07 23:58:38 -0700 | |
---|---|---|
committer | 2023-08-07 23:58:38 -0700 | |
commit | 5497accbdb14da9e361175ad1cd074731b7f8eeb (patch) | |
tree | 994424356f9059b1171f410a9689f2d00bf89f6b /src/bun.js/javascript.zig | |
parent | 182e600eb79655e85b3f0371bc46fc4de8e70094 (diff) | |
download | bun-5497accbdb14da9e361175ad1cd074731b7f8eeb.tar.gz bun-5497accbdb14da9e361175ad1cd074731b7f8eeb.tar.zst bun-5497accbdb14da9e361175ad1cd074731b7f8eeb.zip |
Add `env` option for `node:worker_threads` (#4052)
* almost works
* env stuff
* test fixes
* wtfmove
* ok
* ok
* ref by default
* it now does the ref stuff by default
* cool
Diffstat (limited to 'src/bun.js/javascript.zig')
-rw-r--r-- | src/bun.js/javascript.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index 1c8d91d52..741affa6a 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -910,6 +910,7 @@ pub const VirtualMachine = struct { vm.console, -1, false, + null, ); vm.regular_event_loop.global = vm.global; vm.regular_event_loop.virtual_machine = vm; @@ -1014,6 +1015,7 @@ pub const VirtualMachine = struct { vm.console, -1, smol, + null, ); vm.regular_event_loop.global = vm.global; vm.regular_event_loop.virtual_machine = vm; @@ -1118,6 +1120,7 @@ pub const VirtualMachine = struct { vm.console, @as(i32, @intCast(worker.execution_context_id)), worker.mini, + worker.cpp_worker, ); vm.regular_event_loop.global = vm.global; vm.regular_event_loop.virtual_machine = vm; |