-1:000000000000 | 0:7925065e3b12 |
---|---|
1 // throw, don't crash | |
2 | |
3 var actual = ""; | |
4 | |
5 try { | |
6 | |
7 (x = Proxy.createFunction((function() { | |
8 return { | |
9 defineProperty: function(name, desc) { | |
10 Object.defineProperty(x, name, desc) | |
11 }, | |
12 } | |
13 })(), (eval))); | |
14 Object.defineProperty(x, "", ({ | |
15 get: function() {} | |
16 })) | |
17 | |
18 } catch (e) { | |
19 actual = '' + e; | |
20 } | |
21 | |
22 assertEq(actual, "InternalError: too much recursion"); |