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 {