Correct syntax in generated tests (#2373)

Prior to the application of this patch, the modified test template
included an unintentional syntax error. This caused all generated tests
to spuriously satisfy the expectation for an error.

Correct the syntax in the test template and regenerate the tests,
ensuring that when engines report a syntax error, they are demonstrating
the behavior which the tests were designed to verify.
This commit is contained in:
jugglinmike 2019-09-27 16:22:56 -04:00 committed by Leo Balter
parent 8d4c5f502f
commit 5757d60e17
8 changed files with 8 additions and 8 deletions

View File

@ -26,5 +26,5 @@ info: |
---*/
async function fn() {
for await (/*{ elems }*/ of [/*{ vals }*/])
for await (/*{ elems }*/ of [/*{ vals }*/]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([ x = yield ] of [[]])
for await ([ x = yield ] of [[]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([[(x, y)]] of [[[]]])
for await ([[(x, y)]] of [[[]]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([[x[yield]]] of [[[]]])
for await ([[x[yield]]] of [[[]]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([{ get x() {} }] of [[{}]])
for await ([{ get x() {} }] of [[{}]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([{ x = yield }] of [[{}]])
for await ([{ x = yield }] of [[{}]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([arguments] of [[]])
for await ([arguments] of [[]]) {}
}

View File

@ -30,5 +30,5 @@ info: |
$DONOTEVALUATE();
async function fn() {
for await ([ x[yield] ] of [[]])
for await ([ x[yield] ] of [[]]) {}
}