summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/getelem-sanity-7.js
blob: 483d8b5584030a895d3aad995d0f14b4359b2a1e (plain)
1
2
3
4
5
6
7
8
9
10
var obj = {count: 24};
var key = 'count';

for (var i = 0; i < 1024; ++i) {
    var result = obj[key];
    if (i === 2)
        obj.newAttr = 42;
}

/* Perform getelem across shape change. */