-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mangling parameter names in strict mode results in Safari Syntax Error #1202
Comments
The original unmodified input would have the same issue. |
My bad, I have corrected the original code. |
This should fix it:
|
This is a duplicate of #179. |
#1202 is specific to By default |
Fix: #1203 |
rvanvelzen
pushed a commit
to rvanvelzen/UglifyJS2
that referenced
this issue
Jul 15, 2016
Fixed via eb63fec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code:
When minified with:
--compress --mangle --keep-fnames
Results in:
Unfortunately this breaks Safari with:
SyntaxError: Cannot declare a parameter named 'n' as it shadows the name of a strict mode function.
The text was updated successfully, but these errors were encountered: