summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug732863.js
blob: 59059acc14ab48ab18d41100daf04ef3a738d01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiled
function TestCase(a) { }

// Not compiled (try)
function reportCompare (actual) {
  TestCase(actual);
  try   {  }  catch(ex)  {  }
}

// Compiled
function addThis(bound) {
    actualvalues[bound] = undefined + actual;
    reportCompare(actualvalues[bound]);
}

var actual = '';
var actualvalues = [];
addThis(0);
actual = NaN;
addThis(1);