diff --git a/index.js b/index.js index 7724c97..b887946 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,8 @@ module.exports = isExpression; var DEFAULT_OPTIONS = { throw: false, strict: false, - lineComment: false + lineComment: false, + ecmaVersion: 'latest' }; function isExpression(src, options) { diff --git a/package.json b/package.json index fbad8eb..e73e975 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "expression" ], "dependencies": { - "acorn": "^7.1.1", + "acorn": "^8.8.2", "object-assign": "^4.1.1" }, "devDependencies": {