aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/web_worker.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/web_worker.zig')
-rw-r--r--src/bun.js/web_worker.zig13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bun.js/web_worker.zig b/src/bun.js/web_worker.zig
index bbe708d18..7fa9c6690 100644
--- a/src/bun.js/web_worker.zig
+++ b/src/bun.js/web_worker.zig
@@ -170,14 +170,11 @@ pub const WebWorker = struct {
std.debug.assert(this.status == .start);
std.debug.assert(this.vm == null);
this.arena = try bun.MimallocArena.init();
- var vm = try JSC.VirtualMachine.initWorker(
- this.arena.allocator(),
- this.parent.bundler.options.transform_options,
- null,
- null,
- this.store_fd,
- this,
- );
+ var vm = try JSC.VirtualMachine.initWorker(this, .{
+ .allocator = this.arena.allocator(),
+ .args = this.parent.bundler.options.transform_options,
+ .store_fd = this.store_fd,
+ });
vm.allocator = this.arena.allocator();
vm.arena = &this.arena;