summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1514682.js
blob: c509700b4e81c94c28e421c12042f296105705a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function f(o, n) {
    if (n) {
        o[n] = true;
    } else {
        o.x = true;
    }
}

// Warm up object so HadElementsAccess check will trip next
var o = {};
for (var i = 0; i < 43; ++i) {
    o["x" + i] = true;
}

f(o, "y");