summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testElemInc2.js
blob: 56a926b2e2061b4699f9471b6cb0376ef0527d67 (plain)
1
2
3
4
5
6
7
var obj = {s: ""};
var name = "s";
for (var i = 0; i <= 13; i++)
    if (i > 8)
        obj[name]++;  // first recording changes obj.s from string to number
assertEq(obj.s, 5);