Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // throw, don't crash
3 var actual = "";
5 try {
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 }))
18 } catch (e) {
19 actual = '' + e;
20 }
22 assertEq(actual, "InternalError: too much recursion");