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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js

Issue 2139363005: [DevTools] Fix native function console output (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
index e06236f53c7579ca12b9afcc7bb7b247d54b013b..5d8ee50f648c422c0702deff234b17c8b58567be 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/ObjectPopoverHelper.js
@@ -102,7 +102,7 @@ WebInspector.ObjectPopoverHelper.prototype = {
stepInto.addEventListener("click", () => rawLocation.continueToLocation());
sectionToolbar.appendToolbarItem(stepInto);
}
- var sourceURL = rawLocation.script() ? rawLocation.script().sourceURL : null;
+ var sourceURL = rawLocation && rawLocation.script() ? rawLocation.script().sourceURL : null;
if (rawLocation && sourceURL) {
var link = this._lazyLinkifier().linkifyRawLocation(rawLocation, sourceURL);
linkContainer.appendChild(link);

Powered by Google App Engine
This is Rietveld 408576698