Skip to content
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

fix if_return on AST_Defun #2010

Merged
merged 1 commit into from
May 27, 2017
Merged

fix if_return on AST_Defun #2010

merged 1 commit into from
May 27, 2017

Conversation

alexlamsl
Copy link
Collaborator

Previous fiix for #1052 perturbs declaration order of functions which leads to incorrect behaviour under "use strict".

This is the fix for #2005 (comment) - essentially if_return took the job from hoist_funs and screwed up. So once this fix merges onto harmony we only need to focus on getting hoist_funs to work properly.

Previous fiix for mishoo#1052 perturbs declaration order of functions which leads to incorrect behaviour under "use strict".
@alexlamsl alexlamsl merged commit 95094b9 into mishoo:master May 27, 2017
@alexlamsl alexlamsl deleted the if_return branch May 27, 2017 05:41
alexlamsl added a commit to alexlamsl/UglifyJS that referenced this pull request May 28, 2017
- remove duplicated functionalities
- fix similar issue with `else`
alexlamsl added a commit that referenced this pull request May 29, 2017
- remove duplicated functionalities
- fix similar issue with `else`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant