Debian Codegraph @

js/src/jit-test/tests/auto-regress/bug1791401.js

raw
1 oomTest(function() {
2 var f = Function(`
3 // Don't actually enter the loop. This still causes the original bug and
4 // additionally makes the test complete faster.
5 //
6 // Don't directly use |false|, otherwise the byte code emitter won't emit
7 // the loop.
8 var False = [false, false][0];
9 if (False) {
10 for (let x;;) {
11 // Capture |x|, so it's freshened each loop iteration.
12 Object(() => x);
13 }
14 }
15 `);
16 f();
17 });