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

Unified Diff: Source/WebCore/inspector/front-end/ConsoleMessage.js

Issue 9193003: Merge 104714 - Web Inspector: "undefined" instead of error message in the SourceFrame. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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 | « LayoutTests/inspector/debugger/source-frame-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ConsoleMessage.js
===================================================================
--- Source/WebCore/inspector/front-end/ConsoleMessage.js (revision 104794)
+++ Source/WebCore/inspector/front-end/ConsoleMessage.js (working copy)
@@ -157,9 +157,16 @@
}
// This is used for inline message bubbles in SourceFrames, or other plain-text representations.
- this.message = (urlElement ? urlElement.textContent + " " : "") + messageText.textContent;
+ this._message = messageText.textContent;
},
+ get message()
+ {
+ // force message formatting
+ var formattedMessage = this.formattedMessage;
+ return this._message;
+ },
+
get formattedMessage()
{
if (!this._formattedMessage)
« no previous file with comments | « LayoutTests/inspector/debugger/source-frame-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698