off-thread-compile.js (405B)
1 // |jit-test| skip-if: helperThreadCount() === 0 2 3 // Test off thread module compilation. 4 5 load(libdir + "asserts.js"); 6 7 function offThreadParseAndEvaluate(source) { 8 offThreadCompileModuleToStencil(source); 9 let stencil = finishOffThreadStencil(); 10 let m = instantiateModuleStencil(stencil); 11 moduleLink(m); 12 return moduleEvaluate(m); 13 } 14 15 offThreadParseAndEvaluate("export let x = 2 * 3;");