From 6248897d9fe0639fde9e8184b5173a331ad0cc73 Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Thu, 1 Feb 2024 20:06:02 +0200 Subject: [PATCH] update acorn and turn on latest EcmaScript syntax --- index.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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": {