diff options
author | 2023-07-18 23:09:39 -0700 | |
---|---|---|
committer | 2023-07-18 23:09:39 -0700 | |
commit | a59ddb131eab3dbfaf193c11b230c0e4709b3b66 (patch) | |
tree | a7e42b48eca442e12a1e206e904c24a5fcf82617 /src/bun.js/module_loader.zig | |
parent | 8bd2b784a272f4ee571cbc924f8822d7ba6f7b51 (diff) | |
download | bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.tar.gz bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.tar.zst bun-a59ddb131eab3dbfaf193c11b230c0e4709b3b66.zip |
Fix crash in postMessage that repro'd after ~100,000 messages
Diffstat (limited to 'src/bun.js/module_loader.zig')
-rw-r--r-- | src/bun.js/module_loader.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index 483ff94cb..6a04540b1 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -1697,6 +1697,12 @@ pub const ModuleLoader = struct { // so it consistently handles bundled imports // we can't take the shortcut of just directly importing the file, sadly. .@"bun:main" => { + defer { + if (jsc_vm.worker) |worker| { + worker.queueInitialTask(); + } + } + if (comptime disable_transpilying) { return ResolvedSource{ .allocator = null, |