summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/self1.js
blob: 3a8d45e52084a98572d79aeeba5e3217589486aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// getprop, self, 1 shape

var expected = "11,22,33,11,22,33,11,22,33,11,22,33,11,22,33,";
var actual = '';

function f() {
  var o = { a: 11, b: 22, c: 33 };
  
  for (var i = 0; i < 5; ++i) {
    actual += o.a + ',';
    actual += o.b + ',';
    actual += o.c + ',';
  }
}

f();

assertEq(actual, expected);