Skip to content

Workaround IE8 catch scope bug #4

Open
@medikoo

Description

@medikoo

In my setup mangle at somepoint generated similar code:

var a = function () {...};
try {
  ...
} catch (a) {
  ...
}
return a();

It works on most browsers, but it fails in IE8, where a is not local to catch scope, and overrides outer a.

It'll be great to have either hardcoded workaround for that, or at least an option that will allow us to produce IE8 valid code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions