70 Commits

Author SHA1 Message Date
Rick Waldron
64a4b76c62
chore: migrate $ERROR -> throw new Test262Error in test/language/e* (#3098) 2021-07-28 13:48:39 -07:00
jugglinmike
afe217b318
Add tests for "Class Static Init. Blocks" proposal (#2968)
* Add tests for "Class Static Init. Blocks" proposal

This proposal is currently at "stage 3" in TC39's standardization
process.

* fixup! Add tests for "Class Static Init. Blocks" proposal

* Correct identifier reference

* Update tests for grammar

* Update tests for identifiers

* Add tests for scope derivation
2021-07-15 08:49:12 -04:00
Rick Waldron
602c828805 Coverage: read-only function expression name. Closes gh-2896 2020-11-18 16:30:13 -05:00
Rick Waldron
b89c3bf369 Generate tests 2020-10-14 14:01:01 -04:00
Rick Waldron
a6d38ffe9a Correction: add explicit language re: application of Forbidden Extensions, bullet 1 2020-10-07 16:43:31 -04:00
Rick Waldron
677ae94ae9 Generate tests 2020-09-25 15:54:49 -04:00
Rick Waldron
5090f7adfe Generate tests 2020-09-25 12:01:39 -04:00
Rick Waldron
e2a4e79a11 Coverage: formal parameter binding identifier "eval" must have the correct value in non-strict code. Fixes gh-2814 2020-09-24 14:54:48 -04:00
Rick Waldron
fd92897147 Generate tests 2020-09-22 10:37:38 -04:00
Alexey Shvayka
9411d7fccc Array binding: add generated tests 2020-08-20 12:48:08 -04:00
Valerie Young
55b28c166f Generate tests 2020-01-08 09:30:47 -08:00
Shu-yu Guo
68352eb8b5 Flag sloppy eval in parameter initializer tests as noStrict 2020-01-03 15:36:51 -08:00
Leo Balter
157b18d16b
Merge pull request #2447 from bocoup/eval-param-ref-error
Add test case for new ReferenceError after removal of per-parameter position var scope
2019-12-23 13:39:26 -05:00
Shu-yu Guo
27bda64012 Update tests for removal of per-parameter position var scope (#2445)
See https://github.com/tc39/ecma262/pull/1046
2019-12-23 13:36:09 -05:00
Valerie Young
6281e227f5 generated test files 2019-12-23 13:33:25 -05: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
ddfe24afe3 Regenerate tests 2019-08-05 10:54:37 -04:00
Richard Gibson
c59db6e8bd Generate tests
SRC_DIR=src/function-forms ./make.py
2019-07-10 20:20:16 -04:00
Leo Balter
d73548b027 Generate tests 2018-12-21 15:47:01 -05:00
Leo Balter
3703d2bad1 Generate tests 2018-12-20 12:49:50 -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
Adrian Heine
4f085d7b8f Fix typo (disinct -> distinct) 2018-11-10 10:50:21 +01: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
Leo Balter
46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
Adrian Heine
2fb8eca677 Fix typo intialize(r) -> initialize(r) 2018-02-12 10:05:52 -05:00
Mike Pennisi
1d96e25784 Refactor function literal tests for parsers
A number of tests for the parsing of function literals 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.
2018-02-03 23:25:41 -05:00
Mike Pennisi
6dafe71f1a Improve file names 2018-02-03 23:15:40 -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
Leo Balter
b3092c61b6 Add generators flags for tests depending on generators features (#1259)
* Add missing generators feature flags

* Generate files

* Add generators flags

* fixup! Add generators flags
2017-10-04 16:12:34 -04:00
Leo Balter
9f526c0bcd Re-generate tests 2017-09-08 10:13:50 -04:00
Leo Balter
7630235d5d Re-generate tests 2017-09-08 10:13:36 -04:00
Rick Waldron
dffbe50668 Generate tests 2017-08-16 15:11:44 -04:00
Mike Pennisi
ef76e548a4 Re-generate tests 2017-06-28 11:24:36 -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
Rick Waldron
2dd8e8b2c4 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 13:21:39 -04:00
Leo Balter
5f04d2b1f3
Generate tests 2017-05-10 14:08:35 -04:00
Leo Balter
d74f58cddd
Generate tests 2017-04-21 15:26:46 -04:00
Leo Balter
20d496729d
Rename src/params to src/function-forms
The templates are being used for many tests reusing the same available function forms.
The format they are provided allow us to extend tests with cases for other tests relying
in the same formats.
2017-04-21 15:03:46 -04:00
Mike Pennisi
2c0c3e7f96 Correct typo in copyright information 2017-04-18 12:23:22 -04:00
André Bargull
d59e30c95e Remove execute bit from files (#976) 2017-04-13 16:24:07 -04:00
Leo Balter
2adebecbfa
Generate tests 2017-03-27 13:21:14 -04:00
Leonardo Balter
aa2c69960d
Generate tests 2017-03-14 15:13:10 -04:00
Leonardo Balter
7522a29f31
Generate tests 2017-03-14 14:58:33 -04:00
Leonardo Balter
c37a242057
Move tests for params trailing comma to the test gen tool 2017-03-14 14:58:32 -04:00
Leonardo Balter
c017b4280b
Generate tests 2017-03-14 13:30:35 -04:00
Rick Waldron
b0e9db8856
Remove invalid tests on parameters vs arguments list
Ref #822
2017-03-14 13:20:10 -04:00
Leonardo Balter
0cc55bb44d
Generate tests 2017-03-06 16:25:14 -05:00
Mike Pennisi
7d4b1d28ae Re-format tests for SyntaxErrors
Authored via the following command:

   $ find test -type f -print0 | \
       xargs -0 sed \
         -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1  phase: early\n\1  type: SyntaxError/g'
2016-10-19 15:24:21 -04:00