Commit Graph

504 Commits

Author SHA1 Message Date
Rick Waldron 2dd8e8b2c4 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-23 13:21:39 -04:00
Kevin Gibbons 1ca752482d Add test that noctal escapes are forbidden in strings in strict code 2017-06-19 12:03:47 -07:00
Leo Balter 6110675fd3 Merge pull request #1045 from caiolima/obj-rest-computed-prop
Adding case to computed property
2017-06-12 19:22:53 -03:00
Rick Waldron 44e19a0fe6 Throw away tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-12 17:10:27 -04:00
Rick Waldron c8574edd9c Merge pull request #968 from littledan/no-let-yield-await-asi
Tests for PR to Prohibit ASI between 'let' and 'yield'/'await'
2017-06-09 13:14:35 -04:00
Rick Waldron 670731a25e Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-31 16:05:26 -04:00
Rick Waldron 60a6a7c81e Merge pull request #1039 from rwaldron/dstr-assignment_for-await-of
[WIP] for-await-of: dstr-assignment, templates & cases
2017-05-31 15:46:40 -04:00
Caio Lima 8f5afc2915 Generated tests for computed property Object rest destructuring 2017-05-22 23:05:35 -03:00
Rick Waldron 0a66e9b9de Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-22 16:03:23 -04:00
Leo Balter dde12905df
Generate tests 2017-05-16 17:32:25 -04:00
Rick Waldron 9f3b85fb21 for-await-of: dstr-assignment, default template
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-16 13:24:41 -04:00
Rick Waldron 2b0a8cc1c4 Merge pull request #1037 from leobalter/asyncIterators
Add templates for dstr-binding w/ for-await-of looping over async iterators
2017-05-16 09:25:23 -04:00
Leo Balter 8d7e98265c
Generate tests 2017-05-15 16:02:44 -04:00
Leo Balter 5204678e8f
Generate tests 2017-05-15 15:25:33 -04:00
Leo Balter 17b13b9d01 Merge pull request #1020 from rwaldron/dstr-binding_for-await-of-async-gen-func-error
for-await-of: dstr-binding, error, async func & async gen templates
2017-05-12 18:28:39 -04:00
Rick Waldron 5f274a8581
Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-12 16:01:41 -04:00
Leo Balter 5f04d2b1f3
Generate tests 2017-05-10 14:08:35 -04:00
Leo Balter ed714d702a Merge pull request #1017 from anba/expr-lookahead-restr
Expression statement lookahead restriction and identifier tests
2017-05-09 18:38:11 -04:00
Leo Balter 9481020e91 Merge pull request #1023 from anba/redeclaration
Lexical redeclarations in block- and switch-statements

Background feedback from @anba:

In https://tc39.github.io/ecma262/#sec-switch-statement-static-semantics-lexicallydeclarednames, all lexically declared names from the different case clauses are combined.
For each case clause, the LexicallyDeclaredNames definition from https://tc39.github.io/ecma262/#sec-block-static-semantics-lexicallydeclarednames applies, which has:

```
StatementListItem : Declaration
  1. Return the BoundNames of Declaration.
```

And in https://tc39.github.io/ecma262/#prod-Declaration we've got:

```
Declaration[Yield, Await] : HoistableDeclaration[?Yield, ?Await, ~Default]
```

And in https://tc39.github.io/ecma262/#prod-HoistableDeclaration:

```
HoistableDeclaration[Yield, Await, Default] : FunctionDeclaration[?Yield, ?Await, ?Default]
```

And the BoundNames of a FunctionDeclaration is its BindingIdentifier https://tc39.github.io/ecma262/#sec-function-definitions-static-semantics-boundnames.

And there's also B3.3.5 (https://tc39.github.io/ecma262/#sec-switch-duplicates-allowed-static-semantics) which allows duplicate FunctionDeclarations in sloppy mode in switch-statements.
2017-05-05 13:04:26 -04:00
André Bargull 49221fce1f Remove no longer needed manual redeclaration tests 2017-05-04 09:34:34 -07:00
André Bargull c8e808bc69 Generate new tests for redeclarations in block- and switch-statements 2017-05-04 09:29:39 -07:00
Joseph Pecoraro 19eb1d2e02 Add tests for completion value of function / class declaration statements (#1012) 2017-05-04 11:22:28 -04:00
Rick Waldron 278c9ad994 Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 15:04:08 -04:00
Rick Waldron c3c8d6f099 for-await-of: dstr-binding, error, async func & async gen templates
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-03 12:51:55 -04:00
André Bargull e0c29310d9 Generate tests for yield and await as identifier 2017-05-02 12:09:33 -07:00
André Bargull 490b2dc461 Remove manual tests for 'yield' in generators 2017-05-02 12:09:32 -07:00
André Bargull d887db88ee Add tests escaped/unescaped yield/await labels 2017-05-02 12:09:30 -07:00
André Bargull 3d8fe2af4c Add tests for contextual keywords with escape sequences 2017-05-02 12:09:29 -07:00
André Bargull 7a86baee7d Add lookahead restriction tests for "let [" in expression statement contexts 2017-05-02 12:09:28 -07:00
André Bargull 75d153d280 Add tests to ensure async-functions/generators are not accepted in statement position 2017-05-02 12:09:27 -07:00
André Bargull 69735fd832 Move unary plus tests into correct directory 2017-05-02 12:09:26 -07:00
André Bargull 4494db10b7 Rename and update assignment early error tests 2017-05-02 12:09:25 -07:00
André Bargull 4d95f88c08 Rename and consolidate tests in keywords directory 2017-05-02 12:09:23 -07:00
André Bargull bd7c280e92 Rename and consolidate tests in reserved-words directory 2017-05-02 12:09:22 -07:00
André Bargull 053d63fd0d Rename and consolidate tests in future-reserved-words directory 2017-05-02 12:09:21 -07:00
Rick Waldron 376d9a57a7 Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -04:00
Leo Balter 0ad3d51fd9
Add an early error case for ({ async async }) 2017-05-01 12:29:23 -04:00
Rick Waldron 5b2ffd2def Generate tests
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-04-28 17:23:17 -04:00
Leo Balter d93e15662f
Generate Tests 2017-04-25 15:56:28 -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
Daniel Ehrenberg 799568fe26 Fix commit messages 2017-04-11 23:58:04 +02:00
Daniel Ehrenberg dbfca4581d Prohibit ASI between 'let' and 'yield'/'await'
Inspired by https://github.com/tc39/test262/pull/956
2017-04-11 22:34:43 +02:00
Jeff Walden 6fe9488ec7 Add tests for the behavior of |let <newline> await| in normal and async functions. 2017-04-11 22:21:48 +02:00
Caitlin Potter 53ab9ffd4e Generate tests 2017-04-10 18:29:53 -04:00
André Bargull faaa4685e4 Remove invalid async-flag from syntax error tests (#959) 2017-04-10 14:34:57 -04:00
Rick Waldron 3c79e9dbac Merge pull request #953 from leobalter/syg-async-lineterm
Update cases for async arrow fns with a line terminator
2017-04-07 16:25:51 -04:00
Leo Balter 6030e4ed71
Update object literal expressions for readability
After @rwaldron's feedback:

The purpose of the `!` operator is to evaluate an UnaryExpression,
coerce the result to a boolean value and then return the negated
value of that operation. But that's not what you're trying to do at
all—you just want to evaluate the expression to the right of the
operator, nothing more, nothing less. In this specific case, you
don't even really care about the evaluation, the goal is write
valid (or invalid, as the case may be) syntax that is will be
parsed according to a specific grammar rule that requires some
operator to signal that the thing is an expression and not a Block
Statement.
2017-04-07 11:34:59 -04:00