summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug706316.js
blob: d34aa79f780658486b4fae690cafa294cc879627 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error: ReferenceError
gczeal(4);
function setprop() {
  var obj = { a:({   } )  };
  var obj2 = { b:-1, a:-1 };
  for (var i = 0; i < 20; (length(resultsY.global0, 42))) {
    obj2.b = obj.a = i;
  }
}
assertEq(setprop(), "19,-1,19");