-
Notifications
You must be signed in to change notification settings - Fork 580
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
wrong scope in default function parameters #1604
Comments
1 is correct per ES6 spec. Why do you think it should be 4? |
dupe? #1376 |
This bug is invalid. #1376 is still a valid bug. |
@zayani's latter comment contained a valid'ish example, though it looks like that comment has been deleted (?). I've deleted my reply to it as well since it'd make no sense now. |
Yeah, the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
consider this ES6 code:
var c inside the function should be 4 (x in outer scope) not 1 (x in the function scope), but the complied code give 1
The text was updated successfully, but these errors were encountered: