We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// original code // (beautified) var _calls_ = 10, a = 100, b = 10, c = 0; const foo = b = a; (c = c + 1) + (foo && foo[a++ + a--]); console.log(null, a, b, c, Infinity, NaN, undefined);
// uglified code // (beautified) var n = 100; n && n[n++ + n--], console.log(null, n, 10, 1, Infinity, NaN, undefined);
original result: null 100 100 1 Infinity NaN undefined uglified result: null 100 10 1 Infinity NaN undefined
// reduced test case (output will differ) // (beautified) var a = 0, b = 1; const foo = b = a; 1 && foo[a--]; console.log(a, b); // output: -1 0 // // minify: -1 1 // // options: { // "ie8": true, // "toplevel": true, // "mangle": { // "v8": true // }, // "output": { // "v8": true // }, // "validate": true // }
minify(options): { "ie8": true, "toplevel": true, "mangle": { "v8": true }, "output": { "v8": true } } Suspicious compress options: collapse_vars reduce_vars varify Suspicious options: toplevel
The text was updated successfully, but these errors were encountered:
fix corner case in collapse_vars
collapse_vars
25eaa47
fixes mishoo#4910
fix corner case in collapse_vars (#4911)
d464be3
fixes #4910
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: