Add tests for Object rest/spread properties
leobalter opened this issue · comments
@sebmarkbage do you already have someone working on the tests for this proposal? If not, we might take this task.
I've started converting from the other Array rest/spread cases so that we cover the same scenarios. Unfortunately I've had to take a break on this until mid-March, so any help would be appreciated.
@gsathya has checked in a number of tests into V8; those might be a good starting point
Also see these from WebKit tc39/proposal-object-rest-spread#32 (comment)
@sebmarkbage If you are ok, I can submit a PR with WebKit's tests here.
@caiolima That'd be great!
@leobalter sure! I'm planing to work on that tomorrow and during the weekend. I've seen that array Rest/spread tests are slightly different from the last PR I've submitted, since they are generated from sources into src/dstr-assignment, but I can figure out its pattern.
@leobalter and @sebmarkbage, I've opened the PR #867 with a initial set of tests for Object Rest deconstruction. But I have 2 questions before go further:
- What Am I supposed to put in esid field?
- I want to add some syntax tests, but I'm confused if I should add them and also where should I place them.
I'm planing to create tests for Object Spread this weekend.
I think the negative tests for complex rest properties are still missing.
Thanks for letting me know, I'll get this fixed today.