mirror of https://github.com/tc39/test262.git
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:
parent
8d4c5f502f
commit
5757d60e17
|
@ -26,5 +26,5 @@ info: |
|
|||
---*/
|
||||
|
||||
async function fn() {
|
||||
for await (/*{ elems }*/ of [/*{ vals }*/])
|
||||
for await (/*{ elems }*/ of [/*{ vals }*/]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([ x = yield ] of [[]])
|
||||
for await ([ x = yield ] of [[]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([[(x, y)]] of [[[]]])
|
||||
for await ([[(x, y)]] of [[[]]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([[x[yield]]] of [[[]]])
|
||||
for await ([[x[yield]]] of [[[]]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([{ get x() {} }] of [[{}]])
|
||||
for await ([{ get x() {} }] of [[{}]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([{ x = yield }] of [[{}]])
|
||||
for await ([{ x = yield }] of [[{}]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([arguments] of [[]])
|
||||
for await ([arguments] of [[]]) {}
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ info: |
|
|||
$DONOTEVALUATE();
|
||||
|
||||
async function fn() {
|
||||
for await ([ x[yield] ] of [[]])
|
||||
for await ([ x[yield] ] of [[]]) {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue