summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug705895-2.js
blob: 445efb56a82c87a7ce0d6d971ba0732e3e15db22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: TypeError
function f(o) {
    for (j = 0; j < 9; j++) {
        if (j) {
            o.__proto__ = null
        }
        for (v in o) {}
    }
}
for (i = 0; i < 9; i++) {
    (new Boolean).__proto__.__defineGetter__("toString", function() {})
    f(Boolean.prototype)
}