From 864a73e05c00c90d517aa58d777713db643b7335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Fri, 30 Apr 2021 08:25:28 +0800 Subject: [PATCH] Chore: fix incorrect comment (#491) --- lib/espree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/espree.js b/lib/espree.js index 08aa191a..757b6b10 100644 --- a/lib/espree.js +++ b/lib/espree.js @@ -66,7 +66,7 @@ export default () => Parser => { // Initialize acorn parser. super({ - // TODO: use {...options} when spread is supported(Node.js >= 8.3.0). + // do not use spread, because we don't want to pass any unknown options to acorn ecmaVersion: options.ecmaVersion, sourceType: options.sourceType, ranges: options.ranges,