summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testElemDec2.js
blob: 7dc674645fd9e33c3a45d76b55d311a65aa9964c (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);