summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/setprop.js
blob: bb93e1e498f54a48b7f625a3ace2d71dfe6cbb3b (plain)
1
2
3
4
5
6
7
8
9
10
function setprop()
{
  var obj = { a:-1 };
  var obj2 = { b:-1, a:-1 };
  for (var i = 0; i < 20; i++) {
    obj2.b = obj.a = i;
  }
  return [obj.a, obj2.a, obj2.b].toString();
}
assertEq(setprop(), "19,-1,19");