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

Unified Diff: src/isolate.cc

Issue 2505493002: [inspector] make console.assert much faster (Closed)
Patch Set: 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index c55e00eefa54897c10c4e9fc1f1d3aefaa6bc205..449e92663a1b09047a09f5a200884d8333cb0006 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -773,6 +773,11 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace(
if (!(options & StackTrace::kExposeFramesAcrossSecurityOrigins) &&
!this->context()->HasSameSecurityTokenAs(fun->context()))
continue;
+ Object* script_obj = fun->shared()->script();
+ if (!script_obj->IsUndefined(this)) {
+ Script* script = Script::cast(script_obj);
+ if (script->origin_options().IsEmbedderDebugScript()) continue;
+ }
Handle<JSObject> new_frame_obj = helper.NewStackFrameObject(frames[i]);
stack_trace_elems->set(frames_seen, *new_frame_obj);
frames_seen++;

Powered by Google App Engine
This is Rietveld 408576698