test262/test/language
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
..
arguments-object chore: migrate $ERROR -> throw new Test262Error in test/language/a* (#3095) 2021-07-21 13:42:51 -07:00
asi chore: migrate $ERROR -> throw new Test262Error in test/language/a* (#3095) 2021-07-21 13:42:51 -07:00
block-scope Remove harness file, arrayContains.js 2021-11-01 12:55:10 -04:00
comments Throw distinctive errors for different failures 2021-09-02 10:36:00 -04:00
computed-property-names Transform compareArray -> assert.compareArray: test/language/**/*.js (#3239) 2021-10-15 20:35:01 -04:00
destructuring/binding Improved metadata 2020-11-18 16:44:55 -05:00
directive-prologue
eval-code chore: migrate $ERROR -> throw new Test262Error in test/language/e* (#3098) 2021-07-28 13:48:39 -07:00
export Update "info" field (#2941) 2021-01-28 16:03:01 -08:00
expressions add noStrict flag to yield-as-binding-id cases (#3551) 2022-06-09 09:01:21 +02:00
function-code chore: migrate $ERROR -> throw new Test262Error in test/language/f* (#3099) 2021-07-28 13:47:49 -07:00
future-reserved-words Strengthen sloppy-mode tests for future reserved words. 2021-04-20 09:54:23 -04:00
global-code chore: migrate $ERROR -> throw new Test262Error in test/language/g* (#3101) 2021-07-28 13:47:15 -07:00
identifier-resolution chore: migrate $ERROR -> throw new Test262Error in test/language/i* (#3102) 2021-07-28 13:46:58 -07:00
identifiers tools: enforce restriction on YAML negative key 2022-01-10 13:50:38 -05:00
import Add 'import-assertions' feature tag to json modules tests (#3016) 2021-06-24 14:13:45 -04:00
keywords
line-terminators chore: migrate $ERROR -> throw new Test262Error in test/language/line-terminators/* (#3103) 2021-07-28 13:46:23 -07:00
literals chore: migrate $ERROR -> throw new Test262Error in test/language/l* (#3104) 2021-07-28 13:45:44 -07:00
module-code Correct spurious syntax errors 2022-06-17 10:29:52 +02:00
punctuators
reserved-words
rest-parameters Transform compareArray -> assert.compareArray: test/language/**/*.js (#3239) 2021-10-15 20:35:01 -04:00
source-text chore: migrate $ERROR -> throw new Test262Error in test/language/s* 2021-07-29 10:38:53 -04:00
statementList Remove superfluous EmptyStatement 2021-10-05 16:28:06 -04:00
statements Correct spurious syntax errors 2022-06-17 10:29:52 +02:00
types chore: migrate $ERROR -> throw new Test262Error in test/language/t* (#3106) 2021-07-28 13:44:19 -07:00
white-space chore: migrate $ERROR -> throw new Test262Error in test/language/white-space/* (#3107) 2021-07-28 13:43:40 -07:00