fix multiple main thread actors not working

This commit is contained in:
2025-06-06 21:26:29 -05:00
parent 1a61ae6f77
commit 9f6d27fb3c
6 changed files with 45 additions and 28 deletions

View File

@@ -820,10 +820,13 @@ var prog_script = `(function ${cell.args.program.name()}_start($_, arg) { var ar
var startfn = js.eval(cell.args.program, prog_script);
$_.clock(_ => {
log.console(`actor %{cell.id} is now running its program.`)
var val = startfn($_, cell.args.arg);
if (val)
throw new Error('Program must not return anything');
})
log.console("end. set a clock.");
})()