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; |