This commit is contained in:
Dmitry Vasilev
2023-05-17 16:55:13 +03:00
parent 409d34a24b
commit f75220747c
3 changed files with 21 additions and 7 deletions

View File

@@ -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)