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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js

Issue 2398473002: DevTools: Allow smart enter to be used in ConsolePrompt while Debugging (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
index 6f1e8be435cd5d72f668468c002f6ccea3d28e5b..82d1d0dc84beecbaa65e725811ee0e2351277fed 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsolePrompt.js
@@ -185,8 +185,8 @@ WebInspector.ConsolePrompt.prototype = {
{
if (str !== this.text())
return;
- if (exceptionDetails && (exceptionDetails.exception.description === "SyntaxError: Unexpected end of input"
- || exceptionDetails.exception.description === "SyntaxError: Unterminated template literal")) {
+ if (exceptionDetails && (exceptionDetails.exception.description.startsWith("SyntaxError: Unexpected end of input")
einbinder 2016/10/05 00:04:34 When paused in the debugger, these errors have are
+ || exceptionDetails.exception.description.startsWith("SyntaxError: Unterminated template literal"))) {
this._editor.newlineAndIndent();
this._enterProcessedForTest();
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698