File tree Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ Node.js *
2020[eval]:1
2121const foo;
2222 ^^^
23+ x 'const' declarations must be initialized
24+ ,----
25+ 1 | const foo;
26+ : ^^^
27+ `----
2328
2429SyntaxError: Missing initializer in const declaration
2530
@@ -28,10 +33,15 @@ Node.js *
2833undefined
2934false
3035[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+ `----
3343
34- SyntaxError: Missing initializer in const declaration
44+ SyntaxError: Unexpected identifier 'Foo'
3545
3646Node.js *
3747[eval]:1
Original file line number Diff line number Diff line change @@ -39,13 +39,23 @@ Node.js *
3939[stdin]:1
4040const foo;
4141 ^^^
42+ x 'const' declarations must be initialized
43+ ,----
44+ 1 | const foo;
45+ : ^^^
46+ `----
4247
4348SyntaxError: Missing initializer in const declaration
4449
4550Node.js *
4651[stdin]:1
4752const foo;
4853 ^^^
54+ x 'const' declarations must be initialized
55+ ,----
56+ 1 | const foo;
57+ : ^^^
58+ `----
4959
5060SyntaxError: Missing initializer in const declaration
5161
@@ -57,17 +67,27 @@ undefined
5767false
5868false
5969[stdin]:1
60- ;const foo;
61- ^^^
70+ interface Foo{};const foo;
71+ ^^^
72+ x 'const' declarations must be initialized
73+ ,----
74+ 1 | interface Foo{};const foo;
75+ : ^^^
76+ `----
6277
63- SyntaxError: Missing initializer in const declaration
78+ SyntaxError: Unexpected identifier 'Foo'
6479
6580Node.js *
6681[stdin]:1
67- ;const foo;
68- ^^^
82+ interface Foo{};const foo;
83+ ^^^^^^^^^
84+ x 'const' declarations must be initialized
85+ ,----
86+ 1 | interface Foo{};const foo;
87+ : ^^^
88+ `----
6989
70- SyntaxError: Missing initializer in const declaration
90+ SyntaxError: Unexpected strict mode reserved word
7191
7292Node.js *
7393[stdin]:1
You can’t perform that action at this time.
0 commit comments