Commit cca1838d authored by einbinder's avatar einbinder Committed by Commit bot

DevTools: Allow smart enter to be used in ConsolePrompt while Debugging

BUG=244032

Review-Url: https://codereview.chromium.org/2398473002
Cr-Commit-Position: refs/heads/master@{#423067}
parent a24563fb
...@@ -185,8 +185,8 @@ WebInspector.ConsolePrompt.prototype = { ...@@ -185,8 +185,8 @@ WebInspector.ConsolePrompt.prototype = {
{ {
if (str !== this.text()) if (str !== this.text())
return; return;
if (exceptionDetails && (exceptionDetails.exception.description === "SyntaxError: Unexpected end of input" if (exceptionDetails && (exceptionDetails.exception.description.startsWith("SyntaxError: Unexpected end of input")
|| exceptionDetails.exception.description === "SyntaxError: Unterminated template literal")) { || exceptionDetails.exception.description.startsWith("SyntaxError: Unterminated template literal"))) {
this._editor.newlineAndIndent(); this._editor.newlineAndIndent();
this._enterProcessedForTest(); this._enterProcessedForTest();
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment