summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug581936.js
blob: 5b4e4f1e8ee4b31f57c7e981967b9503d840493f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function returnZero() { return 0; } 
function test() {
  var a = "a";
  var b = "b";
  if (returnZero()) {
    return a + b;
  } else {
    return b + a;
  }
}
assertEq(test(), "ba");