Skip to content
New issue

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufuzz failure #3506

Closed
alexlamsl opened this issue Oct 21, 2019 · 0 comments 路 Fixed by #3507
Closed

ufuzz failure #3506

alexlamsl opened this issue Oct 21, 2019 · 0 comments 路 Fixed by #3507
Labels

Comments

@alexlamsl
Copy link
Collaborator

First report from GitHub Actions 馃帀

// original code
// (beautified)
var _calls_ = 10, a = 100, b = 10, c = 0;

function f0(b_2) {
    {
        var Math_1 = function f1(b_2, bar_2) {
            {
                var brake2 = 5;
                do {
                } while (b_2 && b_2[--b + (typeof f3 == "function" && --_calls_ >= 0 && f3())] && --brake2 > 0);
            }
            return [];
        }(b_2, "number");
    }
    var b_1 = (c = c + 1) + [ ,  ][a++ + Math_1];
}

var undefined_1 = f0(--b + (b += a));

console.log(null, a, b, c, Infinity, NaN, undefined);
// uglified code
// (beautified)
var l = 100, o = 10;

--o, o += l, console.log(null, ++l, o, 1, 1 / 0, NaN, void 0);
original result:
null 101 108 1 Infinity NaN undefined

uglified result:
null 101 109 1 Infinity NaN undefined

minify(options):
{
  "compress": {
    "passes": 1000000,
    "unsafe": true
  },
  "toplevel": true
}
@alexlamsl alexlamsl added the bug label Oct 21, 2019
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue Oct 22, 2019
alexlamsl added a commit that referenced this issue Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant