All projects

Upstream commits

V8

v8/v8

Inspector fix for a crash in embedders such as Node.js when Debugger.paused is delivered on breaks from API interrupts.

View on GitHub

1 commit

  1. [inspector] Allow JS in pause notifications from API interrupts
    Debugger.pause and OOM breaks are scheduled with RequestInterrupt(), so handleProgramBreak() can run inside InvokeApiInterruptCallbacks() with JavaScript execution disallowed. b36cf9f6ccd2 allowed JavaScript around runMessageLoopOnPause(), but Debugger.paused is sent right before that scope and Debugger.resumed right after it. An embedder channel that delivers notifications to JavaScript on the same isolate, like the in-process inspector.Session in Node.js, crashes with "Invoke in DisallowJavascriptExecutionScope" when such a break happens. Extend the existing scope over both notifications. d8's InspectorFrontend opens its own AllowJavascriptExecutionScope, so no existing test covered this; add a unittest with a channel that calls into JavaScript.

Updated daily, last on 2026-11-16. By Christian Aurich Zanettini Martins · All projects