mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
When the event loop path wins the race against STW for inspector activation, requestResumeAll() doesn't clear the VM's trap bits (world was never stopped). The residual NeedStopTheWorld trap + poisoned stack limit then crashes when JS next enters a function. Fix by explicitly calling vm.cancelStop() before requestResumeAll() on the event loop path.
7 lines
101 B
JavaScript
7 lines
101 B
JavaScript
console.log(process.pid);
|
|
let i = 0n;
|
|
while (true)
|
|
if (++i % 50000000n == 0n)
|
|
console.log(i);
|
|
|