fix promise patch

This commit is contained in:
Dmitry Vasilev
2023-02-07 19:36:47 +08:00
parent be4d104dc6
commit 356cb09f92
3 changed files with 12 additions and 9 deletions

View File

@@ -340,7 +340,7 @@ export const eval_modules = (
calltree_changed_token,
is_toplevel_call: true,
Promise: globalThis.run_window.Promise,
window: globalThis.run_window,
}
const result = run(module_fns, cxt, io_cache)