forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstdin_typescript.snapshot
More file actions
101 lines (81 loc) · 1.99 KB
/
Copy pathstdin_typescript.snapshot
File metadata and controls
101 lines (81 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[stdin]:1
enum Foo{};
^^^^
TypeScript enum is not supported in strip-only mode
SyntaxError: Unexpected reserved word
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
enum Foo{};
^^^^
TypeScript enum is not supported in strip-only mode
SyntaxError: Unexpected reserved word
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
throw new SyntaxError("hello")
^
SyntaxError: hello
at [stdin]:1:7
at <node-internal-frames>
at [stdin]-wrapper:6:24
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
throw new SyntaxError("hello")
^
SyntaxError: hello
at [stdin]:1:7
at <node-internal-frames>
at [stdin]-wrapper:6:24
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
const foo;
^^^
'const' declarations must be initialized
SyntaxError: Missing initializer in const declaration
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
const foo;
^^^
'const' declarations must be initialized
SyntaxError: Missing initializer in const declaration
at <node-internal-frames>
Node.js <node-version>
100
100
undefined
undefined
false
false
[stdin]:1
interface Foo{};const foo;
^^^
'const' declarations must be initialized
SyntaxError: Unexpected identifier 'Foo'
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
interface Foo{};const foo;
^^^^^^^^^
'const' declarations must be initialized
SyntaxError: Unexpected strict mode reserved word
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
function foo(){ await Promise.resolve(1)};
^^^^^
await isn't allowed in non-async function
SyntaxError: await is only valid in async functions and the top level bodies of modules
at <node-internal-frames>
Node.js <node-version>
[stdin]:1
function foo(){ await Promise.resolve(1)};
^^^^^
await isn't allowed in non-async function
SyntaxError: await is only valid in async functions and the top level bodies of modules
at <node-internal-frames>
Node.js <node-version>
done