summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug581871.js
blob: 6b22dd5963e0815af8420f77950c3c7fb4e60e4f (plain)
1
2
3
4
5
6
7
8
9
10
function test(p) {
  var alwaysFalse = p && !p;
  var k = [];
  var g;
  if (!alwaysFalse) {
    k[0] = g = alwaysFalse ? "failure" : "success";
    return g;
  }
}
assertEq(test("anything"), "success");