summaryrefslogtreecommitdiff
path: root/lib/internal/repl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/repl')
-rw-r--r--lib/internal/repl/await.js4
-rw-r--r--lib/internal/repl/utils.js4
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js
index 6fb10bbba0..ed58e89529 100644
--- a/lib/internal/repl/await.js
+++ b/lib/internal/repl/await.js
@@ -6,7 +6,6 @@ const acorn = require('internal/deps/acorn/acorn/dist/acorn');
const walk = require('internal/deps/acorn/acorn-walk/dist/walk');
const privateMethods =
require('internal/deps/acorn-plugins/acorn-private-methods/index');
-const bigInt = require('internal/deps/acorn-plugins/acorn-bigint/index');
const classFields =
require('internal/deps/acorn-plugins/acorn-class-fields/index');
const numericSeparator =
@@ -16,7 +15,6 @@ const staticClassFeatures =
const parser = acorn.Parser.extend(
privateMethods,
- bigInt,
classFields,
numericSeparator,
staticClassFeatures
@@ -93,7 +91,7 @@ function processTopLevelAwait(src) {
const wrappedArray = wrapped.split('');
let root;
try {
- root = parser.parse(wrapped, { ecmaVersion: 10 });
+ root = parser.parse(wrapped, { ecmaVersion: 11 });
} catch {
return null;
}
diff --git a/lib/internal/repl/utils.js b/lib/internal/repl/utils.js
index 2ad78a8ab4..d60b332088 100644
--- a/lib/internal/repl/utils.js
+++ b/lib/internal/repl/utils.js
@@ -3,7 +3,6 @@
const acorn = require('internal/deps/acorn/acorn/dist/acorn');
const privateMethods =
require('internal/deps/acorn-plugins/acorn-private-methods/index');
-const bigInt = require('internal/deps/acorn-plugins/acorn-bigint/index');
const classFields =
require('internal/deps/acorn-plugins/acorn-class-fields/index');
const numericSeparator =
@@ -44,7 +43,6 @@ function isRecoverableError(e, code) {
const RecoverableParser = AcornParser
.extend(
privateMethods,
- bigInt,
classFields,
numericSeparator,
staticClassFeatures,
@@ -78,7 +76,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 {
- RecoverableParser.parse(code, { ecmaVersion: 10 });
+ RecoverableParser.parse(code, { ecmaVersion: 11 });
// Odd case: the underlying JS engine (V8, Chakra) rejected this input
// but Acorn detected no issue. Presume that additional text won't