microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.67k stars 283 forks source link

fix: use macrotask state boundary in thread statequeue #2116

Closed connor4312 closed 3 weeks ago

connor4312 commented 3 weeks ago

I initially thought a microtask boundary was sufficient, but with wasm breakpoints with no symbols (where we resume synchronously) I observed that sometimes the queued resume would not be dequeued before the next paused event was handled. So this moves it to a full macrotask.