summaryrefslogtreecommitdiff
path: root/lib/assert.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/assert.js')
-rw-r--r--lib/assert.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/assert.js b/lib/assert.js
index 415ac30775..43209df18f 100644
--- a/lib/assert.js
+++ b/lib/assert.js
@@ -241,7 +241,7 @@ function parseCode(code, offset) {
// Parse the read code until the correct expression is found.
do {
try {
- node = parseExpressionAt(code, start, { ecmaVersion: 11 });
+ node = parseExpressionAt(code, start, { ecmaVersion: 'latest' });
start = node.end + 1 || start;
// Find the CallExpression in the tree.
node = findNodeAround(node, offset, 'CallExpression');