Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Unified Diff: src/debug/debug.cc

Issue 2502173002: [inspector] removed embbeder debugger script flag (Closed)
Patch Set: addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 653fda67d51cf704561053a18af93d63d4f345fb..5d76b1c2c0ebc4b82ff39279b764924205f443f3 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -1920,6 +1920,10 @@ void Debug::CallEventCallback(v8::DebugEvent event,
void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
if (ignore_events()) return;
+ if (script->type() != i::Script::TYPE_NORMAL &&
+ script->type() != i::Script::TYPE_WASM) {
+ return;
+ }
SuppressDebug while_processing(this);
bool in_nested_debug_scope = in_debug_scope();
« no previous file with comments | « src/bootstrapper.cc ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698