Debian Codegraph @

js/src/jit-test/tests/self-test/inIon.js

raw
1 // Test that inIon eventually becomes truthy.
2 // This code should never timeout.
3
4 function callInIon() {
5 return inIon();
6 };
7
8 function test() {
9 // Test with OSR.
10 while(!inIon());
11
12 // Test with inlining.
13 while(!callInIon());
14
15 // Test with zealous gc preventing compilation.
16 while(!inIon()) gc(this, 'shrinking');
17 };
18
19 test();
20