test262/test/language/statements/for
Mike Pennisi 74de3d1d32 Correct spurious syntax errors
Prior to this commit, two tests for specific early errors also included
syntactically invalid `const` declarations. Implementations which
produced the expected syntax error due to these invalid declarations
would pass the tests regardless of whether they produced the early
errors that the tests were written to verify.

Correct the `const` declarations so that the tests verify the parsing
rule that they were designed to verify.
2022-06-17 10:29:52 +02:00
..
dstr Array binding: add generated tests 2020-08-20 12:48:08 -04:00
12.6.3_2-3-a-ii-1.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-2.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-3.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-4.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-5.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-6.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-7.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-8.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-9.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-10.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-11.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-12.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-13.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-14.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-15.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-16.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-17.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-18.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-19.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-20.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
12.6.3_2-3-a-ii-21.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
S12.6.3_A1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A2.1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A2.2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A3.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A4.1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A4_T1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A4_T2.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A5.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A6.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A7.1_T1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A7.1_T2.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A7_T1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A7_T2.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8.1_T1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8.1_T2.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8.1_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8_T1.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8_T2.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A8_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A10.1_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A10.1_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A10_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A10_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A11.1_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A11.1_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A11.1_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A11_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A11_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A11_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A12.1_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A12.1_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A12.1_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A12_T1.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A12_T2.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A12_T3.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
S12.6.3_A13.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A14.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
S12.6.3_A15.js chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
cptn-decl-expr-iter.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
cptn-decl-expr-no-iter.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
cptn-expr-expr-iter.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
cptn-expr-expr-no-iter.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
decl-async-fun.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-async-gen.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-cls.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-const.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-fun.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-gen.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
decl-let.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
head-const-bound-names-in-stmt.js Fix wrong error for a lexical redeclaration test (#3575) 2022-06-16 22:24:51 -04:00
head-const-fresh-binding-per-iteration.js Rename IterationStatement tests 2016-02-16 12:03:21 -05:00
head-init-async-of.js add tests for `for ( async of` 2021-01-18 09:40:36 -05:00
head-init-expr-check-empty-inc-empty-completion.js Improve test precision 2019-03-31 21:44:49 -04:00
head-init-expr-check-empty-inc-empty-syntax.js Improve test precision 2019-03-31 21:44:49 -04:00
head-init-var-check-empty-inc-empty-completion.js Improve test precision 2019-03-31 21:44:49 -04:00
head-init-var-check-empty-inc-empty-syntax.js Improve test precision 2019-03-31 21:44:49 -04:00
head-let-bound-names-in-stmt.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
head-let-destructuring.js Add tests for interpretation of `let` token 2016-06-30 15:24:42 -04:00
head-let-fresh-binding-per-iteration.js Rename IterationStatement tests 2016-02-16 12:03:21 -05:00
head-lhs-let.js Add tests for interpretation of `let` token 2016-06-30 15:24:42 -04:00
head-var-bound-names-in-stmt.js Add tests for IterationStatement early errors 2016-02-25 14:21:08 -08:00
labelled-fn-stmt-const.js Correct spurious syntax errors 2022-06-17 10:29:52 +02:00
labelled-fn-stmt-expr.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
labelled-fn-stmt-let.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
labelled-fn-stmt-var.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
let-array-with-newline.js Rename to $DONOTEVALUATE per @leobalter's suggestion 2018-10-23 13:51:17 +02:00
let-block-with-newline.js Add lookahead restriction tests for "let [" in expression statement contexts 2017-05-02 12:09:28 -07:00
let-identifier-with-newline.js Add lookahead restriction tests for "let [" in expression statement contexts 2017-05-02 12:09:28 -07:00
scope-body-lex-boundary.js Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
scope-body-lex-open.js Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
scope-body-var-none.js Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
scope-head-lex-close.js Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
scope-head-lex-open.js Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
scope-head-var-none.js Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
tco-const-body.js Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition 2018-01-10 15:44:56 -05:00
tco-let-body.js Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition 2018-01-10 15:44:56 -05:00
tco-lhs-body.js Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition 2018-01-10 15:44:56 -05:00
tco-var-body.js Fix esid: static-semantics-hasproductionintailposition => sec-static-semantics-hascallintailposition 2018-01-10 15:44:56 -05:00