michael@0: // |jit-test| error: TypeError michael@0: function f(o) { michael@0: for (j = 0; j < 9; j++) { michael@0: if (j) { michael@0: o.__proto__ = null michael@0: } michael@0: for (v in o) {} michael@0: } michael@0: } michael@0: for (i = 0; i < 9; i++) { michael@0: (new Boolean).__proto__.__defineGetter__("toString", function() {}) michael@0: f(Boolean.prototype) michael@0: }