bug1763012-2.js (312B)
1 // |jit-test| --fast-warmup; --no-threads 2 3 function f() { 4 let counter = 0; 5 for (var i = 0; i < 8; i++) { 6 let x = 0 % i; 7 for (var j = 0; j < 6; j++) { 8 if (x === x) { 9 if (j > 6) {} else {} 10 } else { 11 counter += 1; 12 } 13 } 14 } 15 return counter; 16 } 17 18 f(); 19 assertEq(f(), 6);