Chromium Code Reviews| 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 ba2ade0b7863001cbfe64aa2d178a7e7957e8785..3936d8d978e946b3d0f6be79143a33f54f46fa64 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js |
| @@ -957,7 +957,8 @@ Sources.SourcesPanel = class extends UI.Panel { |
| failedToSave(result); |
| } else { |
| SDK.ConsoleModel.evaluateCommandInConsole( |
| - /** @type {!SDK.ExecutionContext} */ (currentExecutionContext), result.value); |
| + /** @type {!SDK.ExecutionContext} */ (currentExecutionContext), result.value, |
| + /* evaluateCommandInConsole*/ false); |
|
dgozman
2017/01/18 21:57:24
Wrong comment.
kozy
2017/01/18 22:03:05
Done.
|
| } |
| } |
| @@ -1267,7 +1268,7 @@ Sources.SourcesPanel.DebuggingActionDelegate = class { |
| var text = frame.textEditor.text(frame.textEditor.selection()); |
| var executionContext = UI.context.flavor(SDK.ExecutionContext); |
| if (executionContext) |
| - SDK.ConsoleModel.evaluateCommandInConsole(executionContext, text); |
| + SDK.ConsoleModel.evaluateCommandInConsole(executionContext, text, /* useCommandLineAPI */ true); |
| } |
| return true; |
| } |