summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1783507.js
blob: a7a4fd7f576d8f28c791f397f22d934ebed190c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function main(x) {
  var ta = new Int32Array(10);

  for (var i = 0; i < 100; ++i) {
    // MCompare::Compare_UIntPtr with result only used on bailout.
    var r = 0 in ta;

    // Path only entered through bailout condition.
    if (x) {
      // |r| must be recovered on bailout here.
      x(r);
    }
  }
}

main();
main(() => {});