diff --git a/lib/repl.js b/lib/repl.js index 522bfd7d5bd..84441ef130c 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -924,5 +924,5 @@ function isSyntaxError(e) { !e.match(/^SyntaxError: .*strict mode.*/i) && // JSON.parse() error !(e.match(/^SyntaxError: Unexpected (token .*|end of input)/) && - e.match(/\n at Object.parse \(native\)\n/)); + e.match(/\n {4}at Object.parse \(native\)\n/)); }