blob: 0af7d745c37bca90923ee5560f8e64b271f39ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| skip-if: 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;`));
|