oomInOffTheadCompile.js (331B)
1 // |jit-test| skip-if: helperThreadCount() === 0 2 3 oomTest(() => { 4 offThreadCompileToStencil( 5 ` 6 function f(x) { 7 if (x == 0) 8 return "foobar"; 9 return 1 + f(x - 1); 10 } 11 f(5); 12 `); 13 var stencil = finishOffThreadStencil(); 14 evalStencil(stencil); 15 });