summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/iter-cache-null-proto.js
blob: 8e6af52a6b4b72fab4490492437d97179ef33a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
function f() {
    var o = {x: 0};
    for (var i = 0; i < 20; i++) {
        if ((i % 4) === 0)
            Object.setPrototypeOf(o, null);
        else
            Object.setPrototypeOf(o, Object.prototype);
        for (var x in o) {}
    }
}
f();