Comparing version 3.1.4 to 3.1.5
@@ -1045,3 +1045,3 @@ /*********************************************************************** | ||
$documentation: "The `super` symbol", | ||
}, AST_Symbol); | ||
}, AST_This); | ||
@@ -1048,0 +1048,0 @@ var AST_Constant = DEFNODE("Constant", null, { |
@@ -1688,5 +1688,2 @@ /*********************************************************************** | ||
}); | ||
DEFPRINT(AST_SymbolDeclaration, function(self, output){ | ||
self._do_print(output); | ||
}); | ||
DEFPRINT(AST_Hole, noop); | ||
@@ -1693,0 +1690,0 @@ DEFPRINT(AST_This, function(self, output){ |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=0.8.0" |
@@ -607,3 +607,3 @@ uglify-es | ||
- `arrows` (default `true`) -- Converts `()=>{return x}` to `()=>x`. Class | ||
- `arrows` (default: `true`) -- Converts `()=>{return x}` to `()=>x`. Class | ||
and object literal methods will also be converted to arrow expressions if | ||
@@ -626,4 +626,4 @@ the resultant code is shorter: `m(){return x}` becomes `m:()=>x`. | ||
- `computed_props` -- default `true`. Transforms constant computed properties | ||
into regular ones: `{["computed"]: 1}` is converted into `{computed: 1}`. | ||
- `computed_props` (default: `true`) -- Transforms constant computed properties | ||
into regular ones: `{["computed"]: 1}` is converted to `{computed: 1}`. | ||
@@ -642,3 +642,3 @@ - `conditionals` (default: `true`) -- apply optimizations for `if`-s and conditional | ||
- `ecma` -- default `5`. Pass `6` or greater to enable `compress` options that | ||
- `ecma` (default: `5`) -- Pass `6` or greater to enable `compress` options that | ||
will transform ES5 code into smaller ES6+ equivalent forms. | ||
@@ -668,2 +668,6 @@ | ||
- `keep_fnames` (default: `false`) -- Pass `true` to prevent the | ||
compressor from discarding function names. Useful for code relying on | ||
`Function.prototype.name`. See also: the `keep_fnames` [mangle option](#mangle). | ||
- `keep_infinity` (default: `false`) -- default `false`. Pass `true` to prevent `Infinity` from | ||
@@ -733,3 +737,5 @@ being compressed into `1/0`, which may cause performance issues on Chrome. | ||
- `unsafe_arrows` (default `false`) -- Convert ES5 style anonymous function | ||
- `unsafe` (default: `false`) -- apply "unsafe" transformations (discussion below) | ||
- `unsafe_arrows` (default: `false`) -- Convert ES5 style anonymous function | ||
expressions to arrow functions if the function body does not reference `this`. | ||
@@ -747,4 +753,2 @@ Note: it is not always safe to perform this conversion if code relies on the | ||
- `unsafe` (default: `false`) -- apply "unsafe" transformations (discussion below) | ||
- `unsafe_Func` (default: `false`) -- compress and mangle `Function(args, code)` | ||
@@ -756,2 +760,9 @@ when both `args` and `code` are string literals. | ||
- `unsafe_methods` (default: false) -- Converts `{ m: function(){} }` to | ||
`{ m(){} }`. `ecma` must be set to `6` or greater to enable this transform. | ||
If `unsafe_methods` is a RegExp then key/value pairs with keys matching the | ||
RegExp will be converted to concise methods. | ||
Note: if enabled there is a risk of getting a "`<method name>` is not a | ||
constructor" TypeError should any code try to `new` the former function. | ||
- `unsafe_proto` (default: `false`) -- optimize expressions like | ||
@@ -771,4 +782,11 @@ `Array.prototype.slice.call(a)` into `[].slice.call(a)` | ||
- `eval` (default `false`). Pass `true` to mangle names visible in scopes | ||
where `eval` or `with` are used. | ||
- `keep_classnames` (default `false`). Pass `true` to not mangle class names. | ||
- `keep_fnames` (default `false`). Pass `true` to not mangle function names. | ||
Useful for code relying on `Function.prototype.name`. See also: the `keep_fnames` | ||
[compress option](#compress-options). | ||
- `reserved` (default `[]`). Pass an array of identifiers that should be | ||
@@ -780,5 +798,2 @@ excluded from mangling. Example: `["foo", "bar"]`. | ||
- `eval` (default `false`). Pass `true` to mangle names visible in scopes | ||
where `eval` or `with` are used. | ||
- `safari10` (default `false`). Pass `true` to work around the Safari 10 loop | ||
@@ -785,0 +800,0 @@ iterator [bug](https://bugs.webkit.org/show_bug.cgi?id=171041) |
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
700586
1129
18153