summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testElemDec1.js
blob: c03ea2ae0593c3c8f8cbc58856630afaf37be8db (plain)
1
2
3
4
5
6
7
var obj = {p: 100};
var name = "p";
var a = [];
for (var i = 0; i < 10; i++)
    a[i] = obj[name]--;
assertEq(a.join(','), '100,99,98,97,96,95,94,93,92,91');
assertEq(obj.p, 90);