// |jit-test| skip-if: !('oomTest' in this) || helperThreadCount() === 0 // Test Out-of-Memory handling when parsing modules off-thread function offThreadParseAndEvaluate(source) { offThreadCompileModuleToStencil(source); let stencil = finishOffThreadStencil(); let m = instantiateModuleStencil(stencil); moduleLink(m); return moduleEvaluate(m); } oomTest(() => offThreadParseAndEvaluate(`export let i = 2 * 3;`));