blob: f4dd96e3fba401913660fc25fe7c3ed4bd18a813 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
if (helperThreadCount() === 0)
quit(0);
var global = newGlobal();
var dbg = new Debugger(global);
dbg.onNewScript = function (s) {
if (s.url === "<string>")
assertEq(s.getChildScripts().length, 1);
};
global.eval('offThreadCompileScript("function inner() { \\\"use asm\\\"; function xxx() {} return xxx; }");');
global.eval('runOffThreadScript();');
|