|
1 // |jit-test| error: 42 |
|
2 function f(y) {} |
|
3 for each(let e in newGlobal()) { |
|
4 if (e.name === "quit" || e.name == "readline" || e.name == "terminate" || |
|
5 e.name == "nestedShell") |
|
6 continue; |
|
7 try { |
|
8 e(); |
|
9 } catch (r) {} |
|
10 } |
|
11 (function() { |
|
12 arguments.__proto__.__proto__ = newGlobal() |
|
13 function f(y) { |
|
14 y() |
|
15 } |
|
16 for each(b in []) { |
|
17 if (b.name === "quit" || b.name == "readline" || b.name == "terminate" || |
|
18 b.name == "nestedShell") |
|
19 continue; |
|
20 try { |
|
21 f(b) |
|
22 } catch (e) {} |
|
23 } |
|
24 })(); |
|
25 |
|
26 throw 42; |