mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix
This commit is contained in:
@@ -76,7 +76,7 @@ export const find_definitions = (ast, globals, scope = {}, closure_scope = {}, m
|
||||
|
||||
|
||||
// sanity check
|
||||
if(!globals instanceof Set) {
|
||||
if(!(globals instanceof Set)) {
|
||||
throw new Error('not a set')
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,11 @@ export const do_parse = code => parse(
|
||||
)
|
||||
|
||||
export const parse_modules = (entry, modules) =>
|
||||
load_modules(entry, module_name => modules[module_name])
|
||||
load_modules(
|
||||
entry,
|
||||
module_name => modules[module_name],
|
||||
new Set(Object.getOwnPropertyNames(globalThis.run_window))
|
||||
)
|
||||
|
||||
export const eval_tree = code => {
|
||||
const parse_result = do_parse(code)
|
||||
|
||||
Reference in New Issue
Block a user