-
Notifications
You must be signed in to change notification settings - Fork 472
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
Remove tests that allow ...[
and ...{
in object destructuring
#1050
Comments
by object destructuring, this means rest operators (not spread) directly in object patterns for destructuring will only be valid with name identifiers. let [{a, ...[]}] = [{/*...*/}]; // invalid
let {a, ...[]} = {/*...*/}; // invalid
let {a, ...[b]} = {/*...*/}; // invalid
let {a, ...{}} = {/*...*/}; // invalid
let {a, ...{b}} = {/*...*/}; // invalid
let {a, ...b} = {/*...*/}; // valid
let {...b} = {/*...*/}; // valid This needs to wait the respective proposal to be fixed and match the references. |
I don't think that's correct. We need confirmation
Everything I've reviewed so far has |
right you are, my copy-pasta fault.
pending means only we don't have the reference on what the link would be in the specs yet. Still, we require a minimum spec text to reference each case. Of course, providing this in the info tag helps a lot. |
A few examples of test cases requiring a new review: src/dstr-binding/obj-ptrn-rest-nested-obj.case |
I know, but all the cases I've seen said "esid: pending", so there is no reason to...
...
Yes, already removed in a branch. |
I'll also include new negative syntax error tests. |
Signed-off-by: Rick Waldron <[email protected]>
Remove tests that allow `...{` in object destructuring. Ref gh-1050
FYI, these are the obsolete tests that I had to disable in V8: |
Sorry, this is my fault on the late test262 update; I'll report any issues here if there are stray tests. |
@littledan no problem! |
Thanks. If all the obsolete tests have been deleted, can this issue be closed now? |
Have any tests been added that check that the old syntax is no longer allowed? I just upgraded V8 to the new version of test262, and Sathya's patch to use the new semantics hasn't landed yet, but the test262 tests all pass. |
Even with the latest roll, I had to skip a bunch of tests: |
Note that the spec is not yet complete here. There is an open PR at tc39/proposal-object-rest-spread#51 which seems to have consensus among implementers at least. |
… reverted once tc39/test262#1050 gets closed
… reverted once tc39/test262#1050 gets closed
…hould be reverted once tc39/test262#1050 gets closed" This reverts commit afcb99b.
… reverted once tc39/test262#1050 gets closed
…hould be reverted once tc39/test262#1050 gets closed" This reverts commit afcb99b.
@leobalter Is this fixed now with #1187 ? |
yes, I believe we're all set on this. Thanks for the reminder. |
@rwaldron Did you include those negative tests? I can't seem to find them. |
per resolution of 16.i.h https://github.com/tc39/agendas/blob/master/2017/05.md
I'll work on this during my next cycle
The text was updated successfully, but these errors were encountered: