31 Commits

Author SHA1 Message Date
Rick Waldron
ac19f339e7 Fix: poisoned next function in "IteratorClose is called when reference evaluation produces a "return" completion". Fixes gh-670 2020-09-25 13:15:33 -04:00
Rick Waldron
1dd15dd2f3 More cases 2020-09-23 11:18:16 -04:00
HyeockJinKim
be99a3e519 Add coverage for rest properties with computed key
gh-2089
2020-09-22 10:31:33 -04:00
Ross Kirsling
91861e2330 Remove incorrect optional chaining tests. (#2411) 2019-11-01 14:05:31 -04:00
Leo Balter
5d84854f27
Avoid usage of Object.keys when asserting order of returned values (#2320)
Fixes #2226
2019-09-04 11:38:18 -03:00
Leo Balter
8e5820fce7 Add cases for dstr assignment w/ inner edgy LHSExpressions 2019-08-05 10:56:24 -04:00
Leo Balter
29627e892b Add cases for Optional Expressions as DestructuringAssignmentTarget 2019-08-05 10:55:32 -04:00
Leo Balter
6d9bef23d3 Remove es6id from generation files 2019-08-05 10:54:37 -04:00
Leo Balter
5ce0d4ece1 Reorganize target folders - src/dstr-assignment 2018-12-21 15:47:01 -05:00
Leo Balter
dec4e5df74
Merge pull request #1801 from mathiasbynens/issue-1634
Move `throw "…"` for negative parsing errors to a helper function
2018-11-13 17:23:09 -05:00
Rick Waldron
f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
Mathias Bynens
b9daa57dcb Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
Mathias Bynens
e3feffb01e Move throw "…" for negative parsing errors to a helper function
Closes #1634.
2018-10-23 13:51:16 +02:00
Mike Pennisi
136110378b Rename negative test "phase" for parsing
Early errors may result from parsing the source text of a test file, but
they may also result from parsing some other source text as referenced
through the ES2015 module syntax. The latter form of early error is not
necessarily detectable by ECMAScript parsers, however. Because of this,
the label "early" is not sufficiently precise for all Test262 consumers
to correctly interpret all tests.

Update the "phase" name of "early" to "parse" for all those negative
tests that describe errors resulting from parsing of the file's source
text directly. A forthcoming commit will update the remaining tests to
use a "phase" name that is more specific to module resolution.
2018-01-05 15:17:50 -05:00
Caio Lima
d41eb5d913 Added test case to consider rest ordering (#1242) 2017-09-26 17:02:42 -04:00
André Bargull
86da171663 Change case-files for destructuring-with-yield to not rely on destructuring target evaluation order 2017-09-16 17:00:54 +02:00
Leo Balter
31f7b3e218 Update test generation files to use verifyProperty instead of legacy helpers 2017-09-08 10:13:36 -04:00
Leo Balter
c41faf1aca Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
Leo Balter
ceaa012121 Remove remaining cases for ...{ 2017-08-18 18:16:55 -04:00
Rick Waldron
d05b7dfa35 Duplicate src/dstr-assignment/obj-rest-computed-property.case into regular and sloppy versions. Fixes gh-1082
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 15:48:54 -04:00
Mike Pennisi
81d00def42 Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -04:00
Caio Lima
35adcb2a7d Adding case to computed property 2017-05-22 22:24:31 -03:00
Leo Balter
84198d6664
Remove duplicate case
same es src/dstr-assignment/array-elem-target-simple-strict.case
2017-04-25 15:52:19 -04:00
Leo Balter
3f51de0c49
Add features flag for templates w/ Object spread and rest 2017-03-27 13:21:11 -04:00
Leonardo Balter
30c280a1f9
Add case for obj rest name equal to a property
Fixes #913
2017-03-20 14:50:53 -04:00
Leonardo Balter
585f48389f
fix typo 2017-03-20 14:50:45 -04:00
Leonardo Balter
659d82ded4
Rename top level 'length' bindings from test generation cases
Ref #850
2017-03-14 17:42:03 -04:00
Caio Lima
0200c63396
Implementing test cases for object rest deconstruction
Closes #867
Ref #865
2017-03-06 16:24:35 -05:00
Mike Pennisi
7f6e6d137d [generation] Parse and render new error format
Extend the test generation tool to emit the recently-modified format of
the "negative" meta-data. Update the effected test case files
accordingly.
2016-10-19 15:24:19 -04:00
jugglinmike
2bfaa0d895 Improve coverage for class "name" inference (#718)
* Extend tests for class "name" inference

Ensure that when a class defines a static "name" method, that method
definition prevents the "name" inference behavior.

* Re-generate tests
2016-07-08 18:37:04 -07:00
Mike Pennisi
c24a206511 Re-format destructuring assignment tests
Utilize the test generation tool to increase coverage of destructuring
assignment semantics. Previously, only destructuring assignment in the
AssignmentExpression position was tested. With this change applied, the
same tests will assert expected behavior for destructuring assignment in
`for..of` statements, as well.

A limited number of tests are applied to the `for..in` statement as
well, but due to the iteration protocol observed by that statement, many
destructuring tests are not relevant, and others cannot be automatically
generated from this format.
2016-05-25 13:47:06 -04:00