mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
refactor
This commit is contained in:
@@ -59,12 +59,6 @@ type Call = {
|
|||||||
type Node = ToplevelCall | Call
|
type Node = ToplevelCall | Call
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TODO just export const Iframe_Function?
|
|
||||||
const make_function = (...args) => {
|
|
||||||
const fn_constructor = globalThis.run_window.Function
|
|
||||||
return new fn_constructor(...args)
|
|
||||||
}
|
|
||||||
|
|
||||||
const codegen_function_expr = (node, cxt) => {
|
const codegen_function_expr = (node, cxt) => {
|
||||||
const do_codegen = n => codegen(n, cxt)
|
const do_codegen = n => codegen(n, cxt)
|
||||||
|
|
||||||
@@ -765,7 +759,7 @@ export const eval_modules = (
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const actions = make_function(
|
const actions = new (globalThis.run_window.Function)(
|
||||||
'external_imports',
|
'external_imports',
|
||||||
'on_deferred_call',
|
'on_deferred_call',
|
||||||
'calltree_changed_token',
|
'calltree_changed_token',
|
||||||
|
|||||||
Reference in New Issue
Block a user