Debian Codegraph @

js/src/jit-test/tests/basic/bug1207863.js

raw
1 // |jit-test| allow-oom; allow-unhandlable-oom
2
3 function oomTest(f) {
4 var i = 1;
5 do {
6 try {
7 oomAtAllocation(i);
8 f();
9 } catch (e) {
10 more = resetOOMFailure();
11 }
12 i++;
13 } while(more);
14 }
15 oomTest(
16 () => 3
17 | (function () {
18 "use strict";
19 return eval("f();");
20 })()
21 );