590 Commits

Author SHA1 Message Date
Adrian Heine
4f085d7b8f Fix typo (disinct -> distinct) 2018-11-10 10:50:21 +01:00
Kevin Gibbons
8ed9947df1 add async-iteration flag (#1942) 2018-11-08 15:32:40 -05:00
Leo Balter
ab540afaa1 Generate tests 2018-11-07 18:14:37 -05:00
Adrian Heine né Lang
0475c127c4 Fix some generators feature flags (#1933) 2018-11-07 17:51:23 -05:00
Adrian Heine né Lang
25da344185 Add missing new.target feature flags (#1929) 2018-11-07 10:13:49 -05:00
Kevin Gibbons
2be73ca5ea Add missing ./ to relative path in dynamic import (#1925) 2018-11-06 15:38:18 -05:00
Leo Balter
053aed901a Regenerate tests 2018-11-06 10:35:22 -05:00
Katie Broida
f11d0ab3d5 Fix class syntax 2018-11-06 10:35:22 -05:00
Katie Broida
9ccf0a822f Generate tests 2018-11-06 10:35:22 -05:00
Leo Balter
69c1efd325 Generate tests 2018-11-05 12:17:14 -05:00
Rick Waldron
f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
Kubilay Kahveci
b7fb4ade5e Generate tests 2018-10-26 15:12:43 -04:00
Leo Balter
70248aa166 Generate tests 2018-10-26 14:41:35 -04:00
Leo Balter
1538a93bc1 typo 2018-10-25 13:30:18 -04:00
Leo Balter
09e608edad Add cases for ImportCall syntax reused in CallExpressions 2018-10-25 13:30:18 -04:00
Leo Balter
ca87891961 Add case for valid import in a new covered expression 2018-10-25 13:30:18 -04:00
Leo Balter
cd9ca65787 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter
51a0bad7d4 Generate tests 2018-10-25 13:30:18 -04:00
Leo Balter
a347df3aae Add tests for invalid expressions with import() with early ReferenceErrors 2018-10-25 13:30:18 -04:00
Leo Balter
d641be96b4 Add test for import() used from eval 2018-10-25 13:30:18 -04:00
Leo Balter
54aba308b7 import() must not allow a escape sequence 2018-10-25 13:30:18 -04:00
Leo Balter
91bf2474c2 Add more cases for import.meta and new promise instances 2018-10-24 12:27:40 -04:00
Leo Balter
bcdc613df7 Add case for custom toprimitive operations 2018-10-24 12:27:40 -04:00
Leo Balter
23e9d7d58e Add another case for indirect module binding update
Also cases for double failing resolutions
2018-10-24 12:27:40 -04:00
Leo Balter
aebfbdd9df Add more edgy cases for import()
Also rename test/language/expressions/dynamic-import/assignment-expression/
2018-10-24 12:27:40 -04:00
André Bargull
c3e384c8c5 Add initial tests for import.meta (#1888)
Fixes #1342
2018-10-23 15:23:08 -04:00
Mathias Bynens
8869799c6d Rebase, regenerate, and update tests 2018-10-23 13:51:17 +02: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
3936950114 Fix test previously invalid for strict mode 2018-10-19 12:43:39 -04:00
Leo Balter
fc250a310c fix test with unnecessary async generator 2018-10-19 12:43:39 -04:00
Leo Balter
98b3cc95f7 flag resolved import specifiers in test files 2018-10-19 12:43:39 -04:00
Leo Balter
c93b1075f5 Generate tests 2018-10-19 12:43:39 -04:00
Leo Balter
7ee8091259 Move namespace test files 2018-10-19 11:51:40 -04:00
Leo Balter
20b6a3b0a7 Move dynamic-import tests to test/language/expressions 2018-10-19 11:48:17 -04:00
André Bargull
100b3b4afe Add missing includes for await tests (#1874) 2018-10-18 12:02:25 -04:00
Maya Lekova
b98c45ca5a AsyncFunction: Add tests ensuring the new 1-tick await behaviour (#1843)
* AsyncFunction: Add tests ensuring the new 1-tick await behaviour

This commit adds 3 tests ensuring the optimized behaviour of await
(see https://github.com/tc39/ecma262/pull/1250) in the following cases:
- async functions
- yielding from async generator functions
- for-await-of loops

* AsyncFunction: Add tests ensuring the monkey-patched promises behaviour

This commit adds 2 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250) in the following cases:
- awaiting on a native promise with monkey-patched "then"
- awaiting on a non-native promise (a "thenable" object)

* AsyncFunction: Add tests ensuring the non-native promises behaviour

This commit adds 1 more tests ensuring the optimized behaviour of await
(see tc39/ecma262#1250) in the following cases:
- awaiting on a non-promise, non-thenable object

It also renames the previous test for non-promise (a "thenable" object)
to distinguish from the new case.

The commit adds checks for proper await/promises interleaving in the
aforementioned cases and includes a small code clean-up.

* AsyncFunction: Refactor tests ensuring the new 1-tick await behaviour

Gather all the tests to their appropriate folder and update copyright header.
2018-10-17 16:10:09 -04:00
Leo Balter
2ac5f1766e Add tests for delete expression returning true on non reference types 2018-10-16 19:47:25 -04:00
Rick Waldron
3bcb28e918 Generate tests 2018-10-15 12:43:16 -04:00
Mike Pennisi
36f5d9527f Refactor compound assignment tests for parsers
The tests for the parsing of compound assignment expressions 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 and instead express the expectations with
literal source text.
2018-10-15 11:55:29 -04:00
Mike Pennisi
a3a5bedee4 Add esid metadata 2018-10-15 11:55:29 -04:00
Mike Pennisi
6870cc4a77 Rename files 2018-10-15 11:55:29 -04:00
Timothy Gu
140d922d4c Add async-functions feature to more files (#1830) 2018-10-05 10:37:21 -04:00
Leo Balter
754fe94c5d fixup! Generate tests 2018-10-04 16:21:11 -04:00
Rick Waldron
a7ba033337 Generate tests 2018-10-04 16:21:11 -04:00
Leo Balter
46fcbf81d1 Generate tests 2018-09-26 09:18:46 -04:00
jugglinmike
42ed4291f5 Refactor increment/decrement tests for parsers (#1786)
The tests for the parsing of postfix increment, postfix decrement,
prefix increment, and prefix decrement 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` and instead express the expectations with
literal source text.
2018-09-24 12:29:30 -04:00
Kubilay Kahveci
395adc3a7c Generate tests 2018-09-18 14:16:20 -04:00
Leo Balter
317cacdcc9 Fix test generation 2018-09-13 14:55:32 -04:00
Rick Waldron
5c02a094cb Generate tests 2018-09-13 10:23:49 -04:00