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.

package/lib/parse.js CHANGED
@@ -2064,7 +2064,11 @@ function parse($TEXT, options) {
2064
2064
  return new_(allow_calls);
2065
2065
  }
2066
2066
  var start = S.token;
2067
- var async = is("name", "async") && peek().type != "arrow" && as_atom_node();
2067
+ var peeked;
2068
+ var async = is("name", "async")
2069
+ && (peeked = peek()).value != "["
2070
+ && peeked.type != "arrow"
2071
+ && as_atom_node();
2068
2072
  if (is("punc")) {
2069
2073
  switch (S.token.value) {
2070
2074
  case "(":
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "homepage": "https://github.com/fabiosantoscode/terser",
5
5
  "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
6
6
  "license": "BSD-2-Clause",
7
- "version": "3.8.0",
7
+ "version": "3.8.1",
8
8
  "engines": {
9
9
  "node": ">=0.8.0"
10
10
  },