async calls WIP

This commit is contained in:
Dmitry Vasilev
2022-10-25 03:34:47 +08:00
parent 1d1215b718
commit 6a0a01c126

View File

@@ -62,6 +62,7 @@ const make_function = globalThis.process != null
? (...args) => new Function(...args) ? (...args) => new Function(...args)
// Browser context, run code in iframe // Browser context, run code in iframe
: (...args) => { : (...args) => {
/* access window object for iframe */
const fn_constructor = globalThis.run_code.contentWindow.Function const fn_constructor = globalThis.run_code.contentWindow.Function
return new fn_constructor(...args) return new fn_constructor(...args)
} }