(text)
| 5 | import * as engine from './engine.js'; |
| 6 | |
| 7 | const onLine = (text) => self.postMessage({ type: 'line', text }); |
| 8 | |
| 9 | /* Deferred host calls: post `{type:'host-call', reqId, module, name, args}` to main and await `{type:'host-call-response'}`. */ |
| 10 | let nextHostReqId = 0; |