File tree 2 files changed +39
-9
lines changed
2 files changed +39
-9
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change @@ -39,13 +39,23 @@ Node.js *
39
39
[stdin]:1
40
40
const foo;
41
41
^^^
42
+ x 'const' declarations must be initialized
43
+ ,----
44
+ 1 | const foo;
45
+ : ^^^
46
+ `----
42
47
43
48
SyntaxError: Missing initializer in const declaration
44
49
45
50
Node.js *
46
51
[stdin]:1
47
52
const foo;
48
53
^^^
54
+ x 'const' declarations must be initialized
55
+ ,----
56
+ 1 | const foo;
57
+ : ^^^
58
+ `----
49
59
50
60
SyntaxError: Missing initializer in const declaration
51
61
@@ -57,17 +67,27 @@ undefined
57
67
false
58
68
false
59
69
[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
+ `----
62
77
63
- SyntaxError: Missing initializer in const declaration
78
+ SyntaxError: Unexpected identifier 'Foo'
64
79
65
80
Node.js *
66
81
[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
+ `----
69
89
70
- SyntaxError: Missing initializer in const declaration
90
+ SyntaxError: Unexpected strict mode reserved word
71
91
72
92
Node.js *
73
93
[stdin]:1
You can’t perform that action at this time.
0 commit comments