Debian Codegraph @

js/src/jit-test/tests/ion/bug1034400.js

raw
1 var countG = 0;
2 function g() {
3 switch(countG++) {
4 case 0: return 42;
5 case 1: return "yo";
6 case 2: return {};
7 }
8 }
9
10 var countFault = 0;
11 function uceFault() {
12 if (countFault++ == 4)
13 uceFault = function() { return true }
14 return false;
15 }
16
17 function f() {
18 var x = !g();
19 if (uceFault() || uceFault()) {
20 assertEq(x, false);
21 return 0;
22 }
23 return 1;
24 }
25
26 f();
27 f();
28 f();