11[stdin]:1
22enum Foo{};
33^^^^
4- x TypeScript enum is not supported in strip-only mode
5- ,----
6- 1 | enum Foo{};
7- : ^^^^^^^^^^
8- `----
4+ TypeScript enum is not supported in strip-only mode
95
106SyntaxError: Unexpected reserved word
117
128Node.js *
139[stdin]:1
1410enum Foo{};
1511^^^^
16- x TypeScript enum is not supported in strip-only mode
17- ,----
18- 1 | enum Foo{};
19- : ^^^^^^^^^^
20- `----
12+ TypeScript enum is not supported in strip-only mode
2113
2214SyntaxError: Unexpected reserved word
2315
@@ -39,23 +31,15 @@ Node.js *
3931[stdin]:1
4032const foo;
4133 ^^^
42- x 'const' declarations must be initialized
43- ,----
44- 1 | const foo;
45- : ^^^
46- `----
34+ 'const' declarations must be initialized
4735
4836SyntaxError: Missing initializer in const declaration
4937
5038Node.js *
5139[stdin]:1
5240const foo;
5341 ^^^
54- x 'const' declarations must be initialized
55- ,----
56- 1 | const foo;
57- : ^^^
58- `----
42+ 'const' declarations must be initialized
5943
6044SyntaxError: Missing initializer in const declaration
6145
@@ -69,47 +53,31 @@ false
6953[stdin]:1
7054interface Foo{};const foo;
7155 ^^^
72- x 'const' declarations must be initialized
73- ,----
74- 1 | interface Foo{};const foo;
75- : ^^^
76- `----
56+ 'const' declarations must be initialized
7757
7858SyntaxError: Unexpected identifier 'Foo'
7959
8060Node.js *
8161[stdin]:1
8262interface Foo{};const foo;
8363^^^^^^^^^
84- x 'const' declarations must be initialized
85- ,----
86- 1 | interface Foo{};const foo;
87- : ^^^
88- `----
64+ 'const' declarations must be initialized
8965
9066SyntaxError: Unexpected strict mode reserved word
9167
9268Node.js *
9369[stdin]:1
9470function foo(){ await Promise.resolve(1)};
9571 ^^^^^
96- x await isn't allowed in non-async function
97- ,----
98- 1 | function foo(){ await Promise.resolve(1)};
99- : ^^^^^^^
100- `----
72+ await isn't allowed in non-async function
10173
10274SyntaxError: await is only valid in async functions and the top level bodies of modules
10375
10476Node.js *
10577[stdin]:1
10678function foo(){ await Promise.resolve(1)};
10779 ^^^^^
108- x await isn't allowed in non-async function
109- ,----
110- 1 | function foo(){ await Promise.resolve(1)};
111- : ^^^^^^^
112- `----
80+ await isn't allowed in non-async function
11381
11482SyntaxError: await is only valid in async functions and the top level bodies of modules
11583
0 commit comments