Comparing version 3.8.2 to 3.9.0
@@ -161,3 +161,5 @@ /*********************************************************************** | ||
if (node instanceof AST_ObjectKeyVal) { | ||
add(node.key); | ||
if (typeof node.key == "string") { | ||
add(node.key); | ||
} | ||
} else if (node instanceof AST_ObjectProperty) { | ||
@@ -179,3 +181,5 @@ // setter or getter, since KeyVal is handled above | ||
if (node instanceof AST_ObjectKeyVal) { | ||
node.key = mangle(node.key); | ||
if (typeof node.key == "string") { | ||
node.key = mangle(node.key); | ||
} | ||
} else if (node instanceof AST_ObjectProperty) { | ||
@@ -182,0 +186,0 @@ // setter or getter |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.8.2", | ||
"version": "3.9.0", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=0.8.0" |
terser | ||
====== | ||
[![Build Status](https://travis-ci.org/terser-js/terser.svg?branch=master)](https://travis-ci.org/terser-js/terser) | ||
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+. | ||
@@ -536,3 +538,3 @@ | ||
of function names. Useful for code relying on `Function.prototype.name`. If the | ||
top level minify option `keep_classnames` is `undefined` it will be overriden with | ||
top level minify option `keep_classnames` is `undefined` it will be overridden with | ||
the value of the top level minify option `keep_fnames`. | ||
@@ -643,3 +645,2 @@ | ||
the resultant code is shorter: `m(){return x}` becomes `m:()=>x`. | ||
This transform requires that the `ecma` compress option is set to `6` or greater. | ||
@@ -1152,3 +1153,3 @@ - `arguments` (default: `false`) -- replace `arguments[index]` with function | ||
Largely compatible native AST examples can be found in the original UglifyJS | ||
documention. See: [tree walker](http://lisperator.net/uglifyjs/walk) and | ||
documentation. See: [tree walker](http://lisperator.net/uglifyjs/walk) and | ||
[tree transform](http://lisperator.net/uglifyjs/transform). | ||
@@ -1155,0 +1156,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2351550
32548
1261