summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/getprop.js
blob: 126af690b5c9f6e3d981331b266075399adb3317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var a = 2;
function getprop_inner(o2)
{
  var o = {a:5};
  var t = this;
  var x = 0;
  for (var i = 0; i < 20; i++) {
    t = this;
    x += o.a + o2.a + this.a + t.a;
  }
  return x;
}
function getprop() {
  return getprop_inner({a:9});
}
assertEq(getprop(), 360);