Skip to content

uglify issue with named function expressions #207

@wachunga

Description

@wachunga

I just upgraded from 1.0.8 to 2.0.2, which is fantastic! Unfortunately, the included Uglify 1.3.0 (or thereabouts) has a bug that's made the transition a pain...

It's a regression in 1.3.0 that causes issues with named function expressions: mishoo/UglifyJS#404

Would it be possible to pull in the latest from Uglify?

Here's an example of the faulty optimization (where e should remain apply):

        _every(fns, function apply(fn) {
                return _every(fn, apply);

gets mangled to:

        _every(fns, function e(fn) {
                return _every(fn, apply);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions