Files
bun.sh/printer.js
Alistair Smith 7eda29f2d6 fix: cancel VM stop in event loop activation path to prevent residual trap crash
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.
2026-02-13 13:09:44 -08:00

7 lines
101 B
JavaScript

console.log(process.pid);
let i = 0n;
while (true)
if (++i % 50000000n == 0n)
console.log(i);