oomInOffTheadCompile3.js (459B)
1 // |jit-test| skip-if: helperThreadCount() === 0 2 3 oomTest(() => { 4 offThreadCompileToStencil(` 5 function f(x) { 6 class of extends ("ABCDEFGHIJK") { 7 test() { return true; }; 8 static get() {}; 9 static get() {}; 10 } 11 return 1 + f(x - 1); 12 } 13 return g("try{}catch(e){}", n); 14 `); 15 var stencil = finishOffThreadStencil(); 16 evalStencil(stencil); 17 });