-
Notifications
You must be signed in to change notification settings - Fork 465
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
SpreadElement used in ArrayLiteral is lacking tests #671
Comments
Thanks for the report! It's great to see parsers making use of Test262 and even better to see contributions coming back. (By the way, you may be interested in gh-196 and the proposed solution at gh-655.) @leobalter and I recently began a coverage audit for ES2015 features, and "spread in array initializers" made our list, too. I've submitted gh-672 to address this. |
Thanks! And yeah, I had some doubts about these negative tests. Thanks for clarifying that error will be checked soon. |
Apologies: I'm a little confused about your comment. When you say, "some doubts |
Uh, I rather thought about the error checking involved into these negative tests. |
And sorry, this was a bit off topic |
No problem--I just wanted to be sure that we don't have any invalid tests! |
@avdg: You may also be interested in #559. I'd love to see UglifyJS start using those tests. I will get them published to https://github.com/tc39/test262-parser-tests ASAP. |
I think we have enough error messages for now to work on, but yeah, these extra tests could be used as an extra verification tool. |
@michaelficarra Are there es5.1 specific tests too? |
@avdg No. In my opinion, all of the tests should be kept up to date with the latest working draft. Anyway, the tests are now published at https://github.com/tc39/test262-parser-tests. |
Should now be resolved in #672 |
I've noticed only 26 indirect test related to testing spread in
ArrayLiteral
s, they are easy to pass if spread is followed only by an identifier. AassignmentExpression
is allowed after the spread punctuator in current grammar.The text was updated successfully, but these errors were encountered: