mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
WIP
This commit is contained in:
@@ -96,8 +96,8 @@ const do_run = function*(module_fns, cxt, io_cache){
|
||||
}
|
||||
|
||||
export const run = gen_to_promise(function*(module_fns, cxt, io_cache) {
|
||||
if(cxt.run_window != globalThis) {
|
||||
// TODO refactor, remove cxt.run_window
|
||||
if(cxt.window != globalThis) {
|
||||
// TODO refactor, remove cxt.window
|
||||
throw new Error('illegal state')
|
||||
}
|
||||
const result = yield* do_run(module_fns, cxt, io_cache)
|
||||
|
||||
Reference in New Issue
Block a user