From bd2fd0f3cfad075bac14c8023323caaede1d3897 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Wed, 22 Feb 2023 21:22:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/swc_ecma_parser/src/parser/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_parser/src/parser/expr.rs b/crates/swc_ecma_parser/src/parser/expr.rs index 62986026b298..0689f2c4806a 100644 --- a/crates/swc_ecma_parser/src/parser/expr.rs +++ b/crates/swc_ecma_parser/src/parser/expr.rs @@ -712,7 +712,7 @@ impl Parser { expect!(p, '('); let mut first = true; - let mut expr_or_spreads = Vec::with_capacity(8); + let mut expr_or_spreads = Vec::with_capacity(2); while !eof!(p) && !is!(p, ')') { if first {