-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Allow binding patterns in rest binding elements #6275
Comments
Remember to test this with ObjectBindingPattern as well, not just ArrayBindingPattern |
mhegazy
added
ES6
Relates to the ES6 Spec
and removed
ES7
Relates to the ES7 Spec
labels
Aug 24, 2016
@DanielRosenwasser there are actually two separate parts to this issue:
|
ajafff
added a commit
to ajafff/TypeScript
that referenced
this issue
Jul 27, 2018
ajafff
added a commit
to ajafff/TypeScript
that referenced
this issue
Jul 27, 2018
This was referenced Jul 27, 2018
ajafff
added a commit
to ajafff/TypeScript
that referenced
this issue
Jul 27, 2018
also add downlevel emit for the destructured rest param Part of microsoft#6275
Fixed by #26017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #2519 (comment).
New grammar rules:
BindingRestElement
[Yield]
:...
BindingIdentifier[?Yield]
...
BindingPattern[?Yield]
Relevant section:
https://tc39.github.io/ecma262/#sec-destructuring-binding-patterns
Old work for disalllowing the construct was performed here: #2754.
The text was updated successfully, but these errors were encountered: