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

Unified Diff: src/debug/debug.cc

Issue 2826073004: [serializer/debugger] hide scripts in the snapshot from the debugger. (Closed)
Patch Set: fix Created 3 years, 8 months 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 | « no previous file | src/snapshot/startup-serializer.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 f0e93841fd1260ef52b99adb864b0fddb1448165..909c5d0ca51224bf4a06e7a76d53725016702d0b 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -2059,13 +2059,13 @@ void Debug::OnAsyncTaskEvent(debug::PromiseDebugActionType type, int id,
}
void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
+ if (!script->IsUserJavaScript() && script->type() != i::Script::TYPE_WASM) {
+ return;
+ }
// Attach the correct debug id to the script. The debug id is used by the
// inspector to filter scripts by native context.
script->set_context_data(isolate_->native_context()->debug_context_id());
if (ignore_events()) return;
- if (!script->IsUserJavaScript() && script->type() != i::Script::TYPE_WASM) {
- return;
- }
if (!debug_delegate_) return;
SuppressDebug while_processing(this);
DebugScope debug_scope(this);
« no previous file with comments | « no previous file | src/snapshot/startup-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698