summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug533705.js
blob: b112b9e9034648661e7d5cf641bdd62502b02e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Binary: cache/js-dbg-64-61b1c094b729-linux
// Flags: -j
//
function mk() {
  return (function () {});
}

function f() {
  var j = 55;

  var f = function () {
    return j;
  }

  var g = function() {
  }

  var a = [ mk(), f, g, mk(), mk() ];

  for (var i = 0; i < 5; ++i) {
    a[i].p = 99;
  }
}

f();