bugs
This commit is contained in:
parent
8c20a29b54
commit
68f4fbe9b3
5 changed files with 42 additions and 43 deletions
|
|
@ -29,6 +29,7 @@ export function compile(ast: AST, useStore = true, bound = new Set<string>(), to
|
|||
const newBound = new Set([...bound, ...ast.params]);
|
||||
const params = ast.params.map(sanitizeName).join(') => (');
|
||||
const id = astIdCounter++;
|
||||
astRegistry.set(id, ast);
|
||||
return `Object.assign((${params}) => ${compile(ast.body, useStore, newBound, topLevel)}, { _astId: (${id}) })`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue