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

Unified Diff: Source/devtools/front_end/timeline/TracingTimelineModel.js

Issue 327793002: Timeline: return 'null' from JSCallStack::asTraceFormat() when stack is absent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: also fix front-end Created 6 years, 6 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 | « Source/core/inspector/InspectorTraceEvents.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TracingTimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TracingTimelineModel.js b/Source/devtools/front_end/timeline/TracingTimelineModel.js
index a81f065b0ef5c9a388d78203753365a94ee7c9aa..b2de33f635ee6dc754b18ef87d32c5f22fd76bff 100644
--- a/Source/devtools/front_end/timeline/TracingTimelineModel.js
+++ b/Source/devtools/front_end/timeline/TracingTimelineModel.js
@@ -310,7 +310,7 @@ WebInspector.TracingTimelineModel.prototype = {
switch (event.name) {
case recordTypes.CallStack:
var lastMainThreadEvent = this._mainThreadEvents.peekLast();
- if (lastMainThreadEvent)
+ if (lastMainThreadEvent && event.args.stack && event.args.stack.length)
lastMainThreadEvent.stackTrace = event.args.stack;
break;
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698