blob: 8d17d4a749feff0647eef21e274e4581f36e0df9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Test off thread module compilation.
if (helperThreadCount() == 0)
quit();
load(libdir + "asserts.js");
load(libdir + "dummyModuleResolveHook.js");
function offThreadParseAndEvaluate(source) {
offThreadCompileModule(source);
let m = finishOffThreadModule();
m.declarationInstantiation();
return m.evaluation();
}
offThreadParseAndEvaluate("export let x = 2 * 3;");
|