summaryrefslogtreecommitdiff
path: root/lib/internal/repl/recoverable.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/repl/recoverable.js')
-rw-r--r--lib/internal/repl/recoverable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/repl/recoverable.js b/lib/internal/repl/recoverable.js
index 465d77451a..5d270f5146 100644
--- a/lib/internal/repl/recoverable.js
+++ b/lib/internal/repl/recoverable.js
@@ -63,7 +63,7 @@ function isRecoverableError(e, code) {
// Try to parse the code with acorn. If the parse fails, ignore the acorn
// error and return the recoverable status.
try {
- acorn.parse(code, { plugins: { replRecoverable: true } });
+ acorn.parse(code, { plugins: { replRecoverable: true }, ecmaVersion: 10 });
// Odd case: the underlying JS engine (V8, Chakra) rejected this input
// but Acorn detected no issue. Presume that additional text won't