tc39 / test262

Official ECMAScript Conformance Test Suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

@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:

  1. What Am I supposed to put in esid field?
  2. 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.

#867 #890 and #892 should be covering Object Rest Spread for now. I'll check if we find more edge cases - and compare with the tests on v8. I'll follow up w/ new PRs if I find more coverages to fill.

credits to @caiolima who did a great work here!

I am reopening this because of a few extra items:

I think the negative tests for complex rest properties are still missing.

Thanks for letting me know, I'll get this fixed today.