Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
index 5348993f0784b4615bccb078b009b0bf6cb0aa1f..2ea8d0755079fd3ff8d581b75591de0f56a23a4d 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
@@ -1294,7 +1294,7 @@ WebInspector.SourcesPanel.DebuggingActionDelegate.prototype = { |
case "debugger.evaluate-selection": |
var frame = WebInspector.context.flavor(WebInspector.UISourceCodeFrame); |
if (frame) { |
- var text = frame.textEditor.copyRange(frame.textEditor.selection()); |
+ var text = frame.textEditor.text(frame.textEditor.selection()); |
var executionContext = WebInspector.context.flavor(WebInspector.ExecutionContext); |
if (executionContext) |
WebInspector.ConsoleModel.evaluateCommandInConsole(executionContext, text); |