mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 14:22:01 +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.