michael@0: // |jit-test| error: 42 michael@0: function f(y) {} michael@0: for each(let e in newGlobal()) { michael@0: if (e.name === "quit" || e.name == "readline" || e.name == "terminate" || michael@0: e.name == "nestedShell") michael@0: continue; michael@0: try { michael@0: e(); michael@0: } catch (r) {} michael@0: } michael@0: (function() { michael@0: arguments.__proto__.__proto__ = newGlobal() michael@0: function f(y) { michael@0: y() michael@0: } michael@0: for each(b in []) { michael@0: if (b.name === "quit" || b.name == "readline" || b.name == "terminate" || michael@0: b.name == "nestedShell") michael@0: continue; michael@0: try { michael@0: f(b) michael@0: } catch (e) {} michael@0: } michael@0: })(); michael@0: michael@0: throw 42;