summaryrefslogtreecommitdiff
path: root/test/message/stdin_messages.out
blob: bbf996bb56a13c482b7da7465be7a04737031a7c (plain)
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
[stdin]
[stdin]:1
with(this){__filename}
^^^^
SyntaxError: Strict mode code may not include a with statement
    at new Script (vm.js:*)
    at createScript (vm.js:*)
    at Object.runInThisContext (vm.js:*)
    at Object.<anonymous> ([stdin]-wrapper:*:*)
    at Module._compile (internal/modules/cjs/loader.js:*:*)
    at evalScript (internal/bootstrap/node.js:*:*)
    at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
    at Socket.emit (events.js:*:*)
    at endReadableNT (_stream_readable.js:*:*)
    at process.internalTickCallback (internal/process/next_tick.js:*:*)
42
42
[stdin]:1
throw new Error("hello")
^

Error: hello
    at [stdin]:1:7
    at Script.runInThisContext (vm.js:*)
    at Object.runInThisContext (vm.js:*)
    at Object.<anonymous> ([stdin]-wrapper:*:*)
    at Module._compile (internal/modules/cjs/loader.js:*:*)
    at evalScript (internal/bootstrap/node.js:*:*)
    at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
    at Socket.emit (events.js:*:*)
    at endReadableNT (_stream_readable.js:*:*)
    at process.internalTickCallback (internal/process/next_tick.js:*:*)
[stdin]:1
throw new Error("hello")
^

Error: hello
    at [stdin]:1:*
    at Script.runInThisContext (vm.js:*)
    at Object.runInThisContext (vm.js:*)
    at Object.<anonymous> ([stdin]-wrapper:*:*)
    at Module._compile (internal/modules/cjs/loader.js:*:*)
    at evalScript (internal/bootstrap/node.js:*:*)
    at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
    at Socket.emit (events.js:*:*)
    at endReadableNT (_stream_readable.js:*:*)
    at process.internalTickCallback (internal/process/next_tick.js:*:*)
100
[stdin]:1
var x = 100; y = x;
               ^

ReferenceError: y is not defined
    at [stdin]:1:16
    at Script.runInThisContext (vm.js:*)
    at Object.runInThisContext (vm.js:*)
    at Object.<anonymous> ([stdin]-wrapper:*:*)
    at Module._compile (internal/modules/cjs/loader.js:*:*)
    at evalScript (internal/bootstrap/node.js:*:*)
    at Socket.<anonymous> (internal/bootstrap/node.js:*:*)
    at Socket.emit (events.js:*:*)
    at endReadableNT (_stream_readable.js:*:*)
    at process.internalTickCallback (internal/process/next_tick.js:*:*)

[stdin]:1
var ______________________________________________; throw 10
                                                    ^
10

[stdin]:1
var ______________________________________________; throw 10
                                                    ^
10
done