-
Notifications
You must be signed in to change notification settings - Fork 12
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround IE8 catch scope bug #4
Comments
Same applies to handling of function names, they're renamed not in context of surrounding scope, which of course is valid in ECMAScript, but error-prone for IE8 environment, as this name leaks to upper scope and we may have collisions, e.g.: (function (foo) {
var x = foo();
return {
elo: function elo() { .. }
};
}()); Gets renamed to: (function (a) {
var b = a();
return {
elo: function a() { .. }
};
}()); and in IE8 at |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my setup
mangle
at somepoint generated similar code:It works on most browsers, but it fails in IE8, where
a
is not local to catch scope, and overrides outera
.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.
The text was updated successfully, but these errors were encountered: