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

this condition for arrow function hoisting is too conservative #2

Closed
motiz88 opened this issue Sep 10, 2016 · 0 comments
Closed

this condition for arrow function hoisting is too conservative #2

motiz88 opened this issue Sep 10, 2016 · 0 comments

Comments

@motiz88
Copy link
Owner

motiz88 commented Sep 10, 2016

Currently, a ThisExpression anywhere inside an arrow function will block it from being hoisted, even if it is not the same this as the one the arrow function closes over:

() => function B () {return this;} // should not block hoisting of the arrow function
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

No branches or pull requests

1 participant