mirror of https://github.com/tc39/test262.git
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.
This commit is contained in:
parent
13c1b3b546
commit
74de3d1d32
|
@ -15,4 +15,4 @@ negative:
|
|||
$DONOTEVALUATE();
|
||||
|
||||
let x;
|
||||
const x;
|
||||
const x = 0;
|
||||
|
|
|
@ -15,4 +15,4 @@ info: |
|
|||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
for (const x; false; ) label1: label2: function f() {}
|
||||
for (const x = 0; false; ) label1: label2: function f() {}
|
||||
|
|
Loading…
Reference in New Issue