summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/pic/length_object.js
blob: 5f01d57dff7099ab69988384bf4663ce08cbe9c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// length, object

var expected = "777,777,777,777,777,";
var actual = '';

function f() {
  var o = { a: 11, length: 777, b: 22 };

  for (var i = 0; i < 5; ++i) {
    actual += o.length + ',';
  }
}

f();

assertEq(actual, expected);