blob: f42c583b7db1d198e16d9dcff626ea9706ccdf95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| skip-if: helperThreadCount() === 0
var global = newGlobal({newCompartment: true});
var dbg = new Debugger(global);
dbg.onNewScript = function (s) {
if (s.url === "<string>")
assertEq(s.getChildScripts().length, 1);
};
global.eval('offThreadCompileToStencil("function inner() { \\\"use asm\\\"; function xxx() {} return xxx; }");');
global.eval('var stencil = finishOffThreadStencil();');
global.eval('evalStencil(stencil);');
|