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 = {
{
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")
|| exceptionDetails.exception.description.startsWith("SyntaxError: Unterminated template literal"))) {
this._editor.newlineAndIndent();
this._enterProcessedForTest();
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