Leo Balter
ecb5fcbe33
Merge pull request #1840 from jugglinmike/refactor-for-parsers-var
...
Refactor variable declaration tests for parsers
2018-11-05 10:12:24 -05:00
Mike Pennisi
a7deb7bcce
Add tests for `arguments` within function body
2018-10-28 16:23:38 -04: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
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
Rick Waldron
3bcb28e918
Generate tests
2018-10-15 12:43:16 -04:00
Mike Pennisi
aac38cb368
Normalize coverage for `var` declarations
...
Add tests to mirror similar tests which were authored previously.
2018-10-07 16:49:50 -04:00
Mike Pennisi
b819c597ab
Remove redundant test
...
This behavior is covered by another test in this directory:
`arguments-strict-single.js`. Although the syntax error happens to occur
within the body of a function expression, this distinction is not
significant enough to warrant the test's presence nor does it motivate
the introduction of many similar negative syntax tests which are
currently unavailable.
2018-10-07 16:49:49 -04:00
Mike Pennisi
6b00c8fbfe
Rename and refactor tests
...
The tests for the parsing of variable declarations 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-07 16:49:49 -04:00
Mike Pennisi
ceb79988ae
Relocate and refactor tests
...
The tests for the parsing of `for/in` loops 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. Move the tests to the `for-in` directory to better reflect
the grammar production that they test.
2018-10-07 16:48:42 -04:00
Mike Pennisi
835c202b36
Remove redundant and irrelevant tests
...
Two tests placed within the "variable" directory do not include a variable
declaration. Because the behavior they assert is covered by an existing
test (test/language/arguments-object/10.5-1gs.js), they may be removed
without reducing coverage.
2018-10-07 16:43:08 -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
5896ba49be
Generate tests
2018-10-04 10:32:01 -04:00
Leo Balter
46fcbf81d1
Generate tests
2018-09-26 09:18:46 -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
Rick Waldron
6bedd8f1c6
Merge pull request #1717 from leobalter/1711-fixes
...
Apply fixes on recent class element tests
2018-09-11 11:22:43 -04:00
Rick Waldron
2c714ede1d
Merge pull request #1719 from leobalter/private-fields-methods-whitespace-syntax-error
...
Private fields and methods whitespace syntax error
2018-09-11 11:20:44 -04:00
Leo Balter
a17484e230
Generate Tests
2018-09-10 17:13:06 -04:00
Leo Balter
b056d138fa
generate tests
2018-09-10 14:15:40 -04:00
Leo Balter
5cdbf084a7
Generate tests
2018-09-10 14:13:39 -04:00
Rick Waldron
6aa46d0ddb
Merge pull request #1707 from leobalter/private-methods-args
...
Add class private methods (include static) to arguments templates
2018-09-10 11:57:40 -04:00
Leo Balter
a9837df144
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
e28a6f37d0
remove old duplicates
2018-09-10 11:20:40 -04:00
Leo Balter
7766d0fb66
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
94a40cb474
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
8524805f25
Final cases to move to tests generation
2018-09-10 11:20:40 -04:00
Leo Balter
bcfc576af4
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
daea4efc57
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
20217a7eeb
add cases for static method names named prototype
2018-09-10 11:20:40 -04:00
Leo Balter
ef591384d8
Remove old duplicate tests
2018-09-10 11:20:40 -04:00
Leo Balter
ee9739c699
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
af9bcfef5f
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
92c83dfbd4
Add cases for non-ctor methods containing direct super
2018-09-10 11:20:40 -04:00
Leo Balter
bf5661bf60
Generate tests
2018-09-10 11:20:40 -04:00
Leo Balter
46e03c3875
add generation cases for special methods with propname constructor
2018-09-10 11:20:40 -04:00
Leo Balter
eae139d8ef
Generate tests
2018-09-04 17:10:51 -04:00
Leo Balter
2c9583a309
Generate tests
2018-09-04 12:40:30 -04:00
Leo Balter
a4faf41ed6
Generate tests
2018-08-31 15:22:43 -04:00
Leo Balter
fa36c45083
Fix generated tests
2018-08-21 16:32:10 -04:00
Leo Balter
dbcd388154
Remove duplicate of test/language/statements/class/fields-privatename-constructor-err.js
2018-08-21 16:24:37 -04:00
Leo Balter
e25e53c0a7
Fix tests for #constructor
2018-08-21 16:11:27 -04:00
Leo Balter
45a31876e7
Fix tests for computed names in class fields - ctor and prototype
2018-08-21 15:50:39 -04:00
Leo Balter
3690d98e27
Generate tests
2018-08-21 12:47:19 -04:00
Leo Balter
dacc69a066
Generate tests
2018-08-21 12:17:05 -04:00
Leo Balter
9a7fa8cb91
Generate tests
2018-08-20 17:12:40 -04:00
Leo Balter
de1bbd65c8
Generate tests
2018-08-20 16:38:54 -04:00
Leo Balter
96809308fd
Generate tests
2018-08-20 16:38:54 -04:00
Leo Balter
c5a1a4a24b
Generate tests
2018-08-20 16:38:54 -04:00
Rick Waldron
331a3964d5
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
aee9dc163e
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
f222b94f2a
Generate tests
2018-08-20 16:38:53 -04:00
Rick Waldron
ad9fd16bd1
Class Fields: convert .js file to .case
2018-08-20 16:38:52 -04:00
Rick Waldron
1466650ca3
Class Fields: add private name propname errors
2018-08-20 16:38:52 -04:00
Rick Waldron
734544272b
Class Fields: convert propname-error into non-generated to avoid creating erroneous tests where restrictions do not align.
2018-08-20 16:38:52 -04:00
Rick Waldron
3996741ca0
Class Fields: Remove templates that cause erroneous tests to be created.
2018-08-20 16:38:52 -04:00
Rick Waldron
90e8859cdd
Class Fields: Updating frontmatter
2018-08-20 16:38:52 -04:00
Valerie R Young
5d014bdfba
classfields: field definition abrupt completion tests
...
# Conflicts:
# test/language/statements/class/classelementname-abrupt-completion.js
# test/language/statements/class/fielddefinition-initializer-abrupt-completion.js
# test/language/statements/class/super-fielddefinition-initializer-abrupt-completion.js
2018-08-20 16:38:52 -04:00
Rick Waldron
588459fc34
Generate tests
2018-07-25 12:19:29 -04:00
André Bargull
06c2f01901
Fix multiple test bugs and remove incomplete or no longer valid tests ( #1616 )
2018-06-29 18:52:53 -04:00
Rick Waldron
ecea13b04a
SuperProperty evaluation order, must first call super()
...
- Invalid: super[super()]. Expects super() to be called prior to super property access.
2018-06-04 10:52:31 -04:00
Rick Waldron
85a4484c52
SuperProperty evaluation order
...
super[super()] should evaluate and resolve super() first
2018-05-24 15:10:35 -04:00
Rick Waldron
3b7a456ddb
Merge pull request #1532 from anba/compat-new
...
Various test cases for cross-browser compliance bugs
2018-05-03 14:19:40 -04:00
André Bargull
b552dad5cb
Various test cases for cross-browser compliance bugs
2018-05-03 09:27:27 -07:00
Mike Pennisi
e01a560648
Remove superfluous code from negative syntax tests
...
Because these files contain syntax errors, the code they contain is not
intended to be executed, and the runtime semantics are therefore
irrelevant. Simplify the files by removing the unnecessary code.
2018-04-27 22:04:23 -04:00
Rick Waldron
64cdeaf1ed
Remove erroneous remnant $ERROR calls from negative SyntaxError tests
2018-04-26 13:39:36 -04:00
Adrian Heine
2fb8eca677
Fix typo intialize(r) -> initialize(r)
2018-02-12 10:05:52 -05:00
Yusuke Suzuki
18c1e799a0
Prefer spaces to tabs if it is not syntax related tests
...
This patch changes tabs to spaces for newly added tests.
2018-02-08 13:32:42 -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
André Bargull
f717982c94
Remove unused includes
2018-01-25 13:59:37 -05:00
André Bargull
f3911d7ae4
Update remaining tests to use 'parse' instead of 'early' error phase
2018-01-25 13:59:37 -05:00
Rick Waldron
b7afd3d00d
Frontmatter: updates to ForIn/OfBodyEvaluation tests
2018-01-11 10:47:10 -05:00
Rick Waldron
b1aa569c84
Fix: esid sec-runtime-semantics-classdefinitionevaluation
2018-01-10 16:10:32 -05:00
Rick Waldron
5cd8e7bd53
Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition
2018-01-10 15:44:56 -05:00
Rick Waldron
e9e928babe
Resolving conflicts in class-fields src templates
2018-01-05 15:31:17 -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
Rick Waldron
06aaef8ecd
Restore & update existing static class field cases/templates
2017-12-21 16:38:08 -05:00
Rick Waldron
53f847b1bc
Remove static private/public fields unsupported tests.
2017-12-21 16:37:14 -05:00
Daniel Ehrenberg
dc4db968f2
Add tests that public and private static fields are unsupported
2017-12-21 15:21:04 -05:00
Daniel Ehrenberg
2e042d9f9d
Regenerate tests
2017-12-21 15:21:04 -05:00
Daniel Ehrenberg
d50c33a5b3
Remove static fields tests
...
Static fields were broken up from instance fields and demoted to
Stage 2 in the November 2017 TC39 meeting. This patch removes the
test262 tests which test static class fields.
2017-12-21 15:21:04 -05:00
Rick Waldron
642d88377f
Merge pull request #1375 from jugglinmike/refactor-for-parsers-assignment
...
Refactor AssignmentExpression tests for parsers
2017-12-19 15:46:31 -05:00
Rick Waldron
a801bdf786
Fix frontmatter
2017-12-19 15:42:57 -05:00
André Bargull
204afb7ba6
Add tests when continue triggers IteratorClose
2017-12-19 15:42:57 -05:00
André Bargull
df1e5e7d44
Add more completion value tests for try-statements
2017-12-19 15:42:56 -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
Leo Balter
6f8c89dfd1
Update class public fields tags in non-generated test files
2017-11-28 13:02:21 -05:00
Leo Balter
a488271931
Update class fields tags in non-generated test files
2017-11-28 12:59:27 -05:00
Leo Balter
d142f75468
Regenerate tests
2017-11-28 12:49:12 -05:00
Leo Balter
77c70a514d
Merge pull request #1344 from leobalter/class-fields-same-name
...
Class fields with the same name
2017-11-28 10:35:27 -05:00
Isiah Meadows
6ca3634d1b
Broken error message in test ( #1358 )
...
Fixes #1355
2017-11-28 10:34:04 -05:00
Leo Balter
5b7b007af5
Generate tests
2017-11-15 14:33:23 -05:00
Leo Balter
076ecc38c6
Fix bugs reported in #1338 ( #1339 )
...
* Accessing `ta[0]` throws a TypeError.
* Fix array indices starting at 0 and property references
* Fix classfields templates for properly checking static propnames.
* Generate tests
* `assert.equal` is not defined
* Add missing includes
* Generate tests
* typo s/Avalue/42/
* fix whitespace
* Add missing var for strict mode
* Expand generated class fields tests for forbidden computed property name values
Ref https://github.com/tc39/test262/pull/1339#issuecomment-342830243
* derived classes have access to private names in base classes, if private names are in scope
2017-11-10 15:06:00 -05:00
Valerie R Young
bef77dc144
classfields: PrivateFieldSet and PrivateFieldGet
2017-11-03 15:43:44 -04:00
Valerie R Young
a6e9a4ea1a
classfields: PrivateFieldAdd TypeError test
2017-11-03 15:43:44 -04:00
Valerie R Young
ad12c4f5ad
classfields: field definition abrupt completion tests
2017-11-03 15:43:44 -04:00
Leo Balter
06091cb6fd
Merge pull request #1319 from bocoup/classfields-dupsdeletes
...
classfields: add tests duplicate private fields and deleting private fields
2017-11-03 15:19:34 -04:00
Valerie R Young
1bbedf4b02
regenerate files
2017-11-03 14:52:47 -04:00
Valerie R Young
dd371194fe
class fields: add ASI tests
2017-11-03 14:52:46 -04:00
Leo Balter
ce203360b1
Merge pull request #1323 from bocoup/classfields-scope
...
classfields: add early error tests for privatename references
2017-11-03 14:12:10 -04:00
Leo Balter
20a2572ba9
Merge pull request #1309 from bocoup/classfields-stringname
...
classfields: add tests for forbidden public/private propertynames
2017-11-03 14:02:27 -04:00
André Bargull
1f57fe412c
Regenerate tests
2017-11-01 08:23:44 -07:00
André Bargull
6c8698acac
Update test to not rely on throwing a Test262Error
...
Only this test relied on $ERROR throwing a catchable Test262Error.
This change allows test environments to provide their on $ERROR function for better error reporting.
2017-11-01 07:54:04 -07:00
Valerie R Young
4828ce08a3
regenerate files
2017-10-31 14:49:26 -04:00
Valerie R Young
7572c0c36b
Classfields: simple success case for nested classes private name reference
2017-10-29 20:46:09 -04:00
Valerie R Young
54f4d02aa6
Classfields: simple early errors test for privatename references in scripts
2017-10-29 20:46:09 -04:00
Valerie R Young
2664e17e1d
generated test files
2017-10-29 20:11:12 -04:00
Valerie R Young
ea4c8fc95c
classfields: add tests for forbidden privatenames
2017-10-27 17:40:42 -04:00
Leo Balter
88881301d7
Regenerate tests
2017-10-27 15:45:42 -04:00
Leo Balter
fafd465454
Merge pull request #1303 from bocoup/classfields
...
classfields: eval early errors
2017-10-27 12:03:18 -04:00
Leo Balter
b8d1a29f2d
Re-generate tests
2017-10-26 19:04:57 -04:00
Leo Balter
f8f5a7a1e7
Add missing generators flags
2017-10-26 19:04:57 -04:00
Valerie R Young
a9769d0854
regenerate test files
2017-10-26 10:10:57 -04:00
Valerie R Young
c39eeb9276
classfields: add tests for duplicate privatenames
2017-10-25 10:37:13 -04:00
Valerie R Young
0ad5eaf87c
regenerate tests
2017-10-20 22:06:02 -04:00
Valerie R Young
aeffe35d5b
regenerate test files
2017-10-18 16:50:39 -04:00
Valerie R Young
d3c7e1a13a
generate files
2017-10-17 17:53:03 -04:00
Leo Balter
315eca2bbd
Merge pull request #1293 from bocoup/esid-fix
...
fix: esid in case file instead of template file
2017-10-17 17:52:03 -04:00
Valerie R Young
d68faa904f
regenerate tests
2017-10-17 17:47:52 -04:00
Caitlin Potter
51e6a124d3
Generate tests
2017-10-17 15:48:40 -04:00
Leo Balter
edfef8db55
Updates for let names as a LHS in for-in loops ( #1271 )
...
* Delete identifier-let-allowed-as-lefthandside-expression-non-strict.js
Fixes #1192
This is already covered by 8422147c17/test/language/statements/for-in/head-lhs-let.js (L27)
* restore for-in test
2017-10-12 15:27:15 -04: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
Caitlin Potter
0881a6a2ad
Generate tests
2017-10-04 11:24:27 +02:00
⭐caitp⭐
f3b5a1e4c0
Update iteration tests with respect to spec changes ( #1248 )
...
https://github.com/tc39/ecma262/pull/988 changes the iteration protocol
such that the "next" method is only loaded from the iterator object once
during the prologue of iteration, rather than during each step.
2017-09-27 17:59:41 -04:00
Caio Lima
d41eb5d913
Added test case to consider rest ordering ( #1242 )
2017-09-26 17:02:42 -04:00
André Bargull
58111fff7b
Regenerate tests
2017-09-16 17:00:55 +02:00
Leo Balter
7f88a6d7f9
Add other missing Symbol feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
2bee5df77a
Add missing Symbol.iterator feature flags
2017-09-08 10:13:50 -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
Leo Balter
9376782c6e
Regenerate tests
2017-09-07 15:51:13 -04:00
Leo Balter
c41faf1aca
Add missing Symbol features flags
2017-09-07 15:51:13 -04:00
Leo Balter
391ce890b8
Merge pull request #1205 from anba/class-fields-fixes
...
Misc. class fields fixes
2017-09-05 11:16:19 -04:00
André Bargull
76ff88ff2f
Regenerate tests
2017-09-04 09:42:06 -04:00
André Bargull
672cfcf220
Regenerate tests
2017-09-01 23:45:01 +02:00
Isiah Meadows
8924aef732
Update decl-fun.js
2017-08-30 06:52:17 -04:00
Marshall Roch
3760b802ca
Typo in test/language/statements/labeled/continue.js
2017-08-29 22:46:11 -07:00
Leo Balter
a7ccd3042b
Generate tests
2017-08-24 14:11:28 -04:00
Rick Waldron
4f4039f716
try/catch: catch parameter bound names clean up ( #1172 )
2017-08-21 11:30:09 -04:00
Leo Balter
1624816d81
Re-Generate tests
2017-08-18 18:16:55 -04:00
Lucas Azzola
75db6744eb
Add optional-catch-binding tests ( #1167 )
2017-08-18 17:19:48 -04:00
Leo Balter
eb93f96911
Merge pull request #1182 from rwaldron/1181
...
features: generator => generators. Fixes gh-1181
2017-08-18 17:19:01 -04:00
Rick Waldron
3ca040f892
Throw away tests
2017-08-18 17:11:02 -04:00
Rick Waldron
dffbe50668
Generate tests
2017-08-16 15:11:44 -04:00
Rick Waldron
bcd308b553
remove garbage: these try/catch tests don't actually test the section cited (or anything for that matter)
...
Cited: https://www.ecma-international.org/ecma-262/5.1/index.html#sec-12.14.1
Present: https://tc39.github.io/ecma262/#sec-strict-mode-of-ecmascript
> It is a SyntaxError if a CatchParameter occurs within strict mode code and BoundNames of CatchParameter contains either eval or arguments (13.15.1).
2017-08-11 13:18:26 -04:00
Rick Waldron
cc70c52547
Throw away tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-07-25 10:55:29 -04:00
Daniel Ehrenberg
193779ee0c
Add ASI let/yield test ( #1084 )
...
I had previously intended to add this test in
https://github.com/tc39/test262/pull/968 ,
but it seems like I instead checked in a copy of another test. This
patch changes it to test what was initially intended, which is part of
the semantics for https://github.com/tc39/ecma262/pull/885
2017-06-30 10:26:50 -04:00
Rick Waldron
38150b3535
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 15:49:02 -04:00
Rick Waldron
144d73ef27
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 12:10:19 -04:00
Rick Waldron
86209d8fd9
Make all harness/* file names consistent; update occurrences in test
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 11:53:58 -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
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
Rick Waldron
376d9a57a7
Generate tests
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-05-01 17:19:50 -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
Daniel Ehrenberg
20536eabe1
Generate tests
2017-04-06 19:44:14 -04:00