Index: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
index a7873ee21d1913aa96da90efa52719df94c7d47e..c4049b877141f673fad2d9ca040254698fcd4e85 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js |
@@ -89,9 +89,9 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = { |
{ |
var lineNumber = uiLocation.lineNumber |
var columnNumber = uiLocation.columnNumber; |
- var contentString = new String(content); |
- if (lineNumber < contentString.lineCount()) { |
- var lineText = contentString.lineAt(lineNumber); |
+ var text = new WebInspector.Text(content || ""); |
+ if (lineNumber < text.lineCount()) { |
+ var lineText = text.lineAt(lineNumber); |
var maxSnippetLength = 200; |
var snippetStartIndex = columnNumber > 100 ? columnNumber : 0; |
snippetElement.textContent = lineText.substr(snippetStartIndex).trimEnd(maxSnippetLength); |