Skip to content

-c sequences=N suboptimal at N expression cutoff #1455

@kzc

Description

@kzc

uglify-js 2.7.5

actual:

$ echo 'a;b;c;d;e;f;g;h;i;j;k;' | uglifyjs -c sequences=3 -b
a, b, c;
d;
e, f, g;
h;
i, j, k;

expected:

a, b, c;
d, e, f;
g, h, i;
j, k;

Note: should point out that code size in example above is the same, but with real life functions with if statements and multiple returns it makes a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions