89 Commits

Author SHA1 Message Date
Ross Kirsling
007b333af2 Add additional tests for tc39/ecma262#3307.
Ensure that the following cases are covered:
- https://github.com/tc39/ecma262/issues/3295#issuecomment-2058110314
- https://github.com/tc39/ecma262/issues/2659#issue-1131245695
2024-04-22 12:36:07 -07:00
Marko Lahma
263c514afa Add missing DummyError function definition to target-super-computed-reference.js 2024-04-15 11:30:42 -07:00
Ross Kirsling
142a6a6fbe
Update test for o[p] = f() (#4052)
* Update test for o[p] = f()

Update S11.13.1_A7_T3.js now that consensus has been reached on https://github.com/tc39/ecma262/pull/3307.

* Rename test and add an analogous one for super.
2024-04-12 11:59:40 -07:00
André Bargull
08a7b9d4b6 Use verifyProperty in language/expressions tests 2023-09-13 16:05:40 +02:00
Youssef Soliman
79c4496559 Fixed spelling error identifer -> identifier. 2022-06-21 10:14:17 +02:00
Mike Pennisi
8d420cef41 Remove unused functions 2021-10-13 14:18:32 -04:00
Rick Waldron
7be8fca485
fix: re-run clean and build on master to sync generated tests (#3247) 2021-10-06 15:47:46 -04:00
Mike Pennisi
8f1fb5c257 Remove unused functions 2021-10-05 16:24:16 -04:00
rwaldron
43c68163c0 Generate tests 2021-10-01 16:38:56 -04:00
Mike Pennisi
d9ddf80479 Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray"
This reverts commit b690cb67be9b487eb10156c03e2c00869e88cc9d, reversing
changes made to 50dd431dffe5cf86e9064a652d6b01dbbe542cf0. This is
necessary because the reverted changeset reduced coverage by an unknown
extent.
2021-10-01 10:18:47 -04:00
rwaldron
4847d9db5a chore: update test/**/*.js to use assert.compareArray wherever applicable 2021-09-24 12:58:15 -04:00
rwaldron
8afbeda683 chore: migrate $ERROR -> throw new Test262Error in test/language/expressions/assignment/white-space.js 2021-07-29 15:21:12 -04:00
Rick Waldron
64a4b76c62
chore: migrate $ERROR -> throw new Test262Error in test/language/e* (#3098) 2021-07-28 13:48:39 -07:00
rwaldron
77cc528526 Generate tests 2021-07-22 15:31:36 -04:00
Mike Pennisi
9b4ca4371b Add tests for change in Reference Records
These tests support the following normative change

"Normative: Allow null or undefined in Reference Records"
https://github.com/tc39/ecma262/pull/2267

The tests concerning the `delete` operator increase coverage to verify
behavior which, though related, is not altered by the normative change.
These tests are intended to guard against regressions as engines
implement the new semantics.
2021-06-24 13:16:43 -04:00
Rick Waldron
73db72baad Generate tests 2020-09-25 13:15:33 -04:00
Rick Waldron
4bcc582183 Regenerate tests 2020-09-23 11:18:16 -04:00
Rick Waldron
601688856e Generate tests 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
Rick Waldron
92a200b29f Attempting to set a value to a binding that no longer exists must throw a ReferenceError exception in strict mode code. Fixes gh-427 2020-09-15 16:33:59 -04:00
Rick Waldron
8a2bfb48d4 Delete invalid tests 2020-09-15 16:33:59 -04:00
Rick Waldron
8287422b64 Coverage for assignment to left hand side expressions that are an assignment. Fixes gh-2487 2020-09-10 15:22: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
André Bargull
59a1a016b7 Assign "name" property to all anonymous functions (#2299)
Implements the changes from <https://github.com/tc39/ecma262/pull/1490>.
2019-08-15 10:58:40 -04:00
Leo Balter
bcb6c33387 Regenerate tests 2019-08-14 19:14:44 -04:00
Leo Balter
209845c7b5 Generate tests 2019-08-14 18:54:04 -04:00
Leo Balter
ae4df81f6f Generate tests 2019-08-14 17:52:41 -04:00
Leo Balter
4d06dbc7eb Generate tests 2019-08-14 16:48:44 -04:00
Leo Balter
c4dd26bcee Generate tests 2019-08-05 10:56:24 -04:00
Leo Balter
ca9a3fde50 Generate tests 2019-08-05 10:56:24 -04:00
Leo Balter
8893f7a684 Generate tests 2019-08-05 10:55:32 -04:00
Leo Balter
ddfe24afe3 Regenerate tests 2019-08-05 10:54:37 -04:00
Ross Kirsling
1859ec66f4 Test update for letting all early errors be SyntaxErrors 2019-06-12 14:09:03 -04:00
Leo Balter
d73548b027 Generate tests 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
Thomas Wood
2d4ac25fa0 Add feature flags for new.target
Additionally removed the `arrow-function` feature for
test/language/eval-code/direct/new.target-fn.js as it is not testing
arrow-functions, but they are mentioned in the preamble.
2018-07-24 20:31:35 +01:00
André Bargull
f3911d7ae4 Update remaining tests to use 'parse' instead of 'early' error phase 2018-01-25 13:59:37 -05: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
Rick Waldron
92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Mike Pennisi
025b44f38c Refactor AssignmentExpression tests for parsers
A number of tests for the parsing of the AssignmentExpression production
were expressed using `eval`. This made the tests more complex than
necessary, and also prevented the tests from providing value to
ECMAScript parsers.

Remove the use of `eval` in the relevant tests and instead express the
expectations with literal source text. Remove superfluous "onlyStrict"
restriction from tests by declaring the probe binding prior to
assignment.
2017-12-10 15:59:11 -05:00
Caio Lima
d41eb5d913 Added test case to consider rest ordering (#1242) 2017-09-26 17:02:42 -04:00
André Bargull
87e259c6e5 Add replacement tests for destructuring evaluation order with property reference as target 2017-09-16 17:00:56 +02:00
André Bargull
58111fff7b Regenerate tests 2017-09-16 17:00:55 +02:00
Leo Balter
7630235d5d Re-generate tests 2017-09-08 10:13:36 -04:00
Leo Balter
9376782c6e Regenerate tests 2017-09-07 15:51:13 -04:00
Leo Balter
1624816d81 Re-Generate tests 2017-08-18 18:16:55 -04:00