offthread-oom.js (414B)
1 // |jit-test| skip-if: helperThreadCount() === 0 2 3 // Test Out-of-Memory handling when parsing modules off-thread 4 5 function offThreadParseAndEvaluate(source) { 6 offThreadCompileModuleToStencil(source); 7 let stencil = finishOffThreadStencil(); 8 let m = instantiateModuleStencil(stencil); 9 moduleLink(m); 10 return moduleEvaluate(m); 11 } 12 13 oomTest(() => offThreadParseAndEvaluate(`export let i = 2 * 3;`));