Skip to content

Commit 6751db2

Browse files
addaleaxCommit Bot
authored andcommitted
[debug] allow JS execution in ProcessCompileEvent callbacks
In Debug mode, V8 disallows executing JavaScript during `ScriptCompiler::CompileUnbound()` calls. This restriction makes sense during compilation, but not really for the post-compile notification, and currently at least one Node.js test (`test/inspector/test-contexts.js`) fails because of this in debug mode. Bug: Change-Id: I930b5f06083c0e87f1613414da3dfe2bcdf0f386 Reviewed-on: https://chromium-review.googlesource.com/706943 Reviewed-by: Yang Guo <[email protected]> Commit-Queue: Yang Guo <[email protected]> Cr-Commit-Position: refs/heads/master@{#48421}
1 parent ce1104c commit 6751db2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/debug/debug.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,7 @@ void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
18861886
HandleScope scope(isolate_);
18871887
PostponeInterruptsScope postpone(isolate_);
18881888
DisableBreak no_recursive_break(this);
1889+
AllowJavascriptExecution allow_script(isolate_);
18891890
debug_delegate_->ScriptCompiled(ToApiHandle<debug::Script>(script),
18901891
live_edit_enabled(),
18911892
event != v8::AfterCompile);

0 commit comments

Comments
 (0)