-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Arguments object scope not maintained within inner functions when using function shorthand () #10476
Labels
invalid
Issues and PRs that are invalid.
Comments
|
Oops, didn't see that before! Thanks!
via Newton Mail [https://cloudmagic.com/k/d/mailapp?ct=pa&cv=9.3.39&pv=6.0.1&source=email_footer_2] On Tue, Dec 27, 2016 at 4:21pm, Vse Mozhet Byt < notifications@github.com [notifications@github.com] > wrote:
An arrow function expression has a shorter syntax than a function expression and does not bind its own this, arguments, super, or new.target.
MDN [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [#10476 (comment)] , or mute the thread [https://github.com/notifications/unsubscribe-auth/ADkfrkI74z8e2bgm0nnipW5s6If23mpJks5rMYFEgaJpZM4LWgp6] .
|
This was referenced Apr 24, 2023
This was referenced Apr 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 7.3.0, 6.4.0, 4.0.0 (Just tested these three)
Platform:
Shouldnt this return 'dummyArguments' since the arguments object is scoped http://stackoverflow.com/questions/29216881/inner-function-scope-in-javascript
Where as when not using the function shorthand:
The text was updated successfully, but these errors were encountered: