terser 3.8.0 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of terser might be problematic. Click here for more details.

@@ -2840,7 +2840,8 @@
2840
2840
  var expr_atom = function(allow_calls, allow_arrows) {
2841
2841
  if (is("operator", "new")) return new_(allow_calls);
2842
2842
  var start = S.token;
2843
- var async = is("name", "async") && "arrow" != peek().type && as_atom_node();
2843
+ var peeked;
2844
+ var async = is("name", "async") && "[" != (peeked = peek()).value && "arrow" != peeked.type && as_atom_node();
2844
2845
  if (is("punc")) {
2845
2846
  switch (S.token.value) {
2846
2847
  case "(":