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

Unified Diff: src/isolate.cc

Issue 2499093003: [inspector] don't report frames for v8-debugger internal scripts (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
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+ }
Yang 2016/11/15 08:15:47 Please change StackTraceFrameIterator::IsValidFram
Handle<JSObject> new_frame_obj = helper.NewStackFrameObject(frames[i]);
stack_trace_elems->set(frames_seen, *new_frame_obj);
frames_seen++;
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698