@@ -20,6 +20,11 @@ Node.js *
|
20 | 20 | [eval]:1 |
21 | 21 | const foo; |
22 | 22 | ^^^ |
| 23 | + x 'const' declarations must be initialized |
| 24 | + ,---- |
| 25 | + 1 | const foo; |
| 26 | + : ^^^ |
| 27 | + `---- |
23 | 28 | |
24 | 29 | SyntaxError: Missing initializer in const declaration |
25 | 30 | |
@@ -28,10 +33,15 @@ Node.js *
|
28 | 33 | undefined |
29 | 34 | false |
30 | 35 | [eval]:1 |
31 | | - ;const foo; |
32 | | - ^^^ |
| 36 | +interface Foo{};const foo; |
| 37 | + ^^^ |
| 38 | + x 'const' declarations must be initialized |
| 39 | + ,---- |
| 40 | + 1 | interface Foo{};const foo; |
| 41 | + : ^^^ |
| 42 | + `---- |
33 | 43 | |
34 | | -SyntaxError: Missing initializer in const declaration |
| 44 | +SyntaxError: Unexpected identifier 'Foo' |
35 | 45 | |
36 | 46 | Node.js * |
37 | 47 | [eval]:1 |
|