fix bug with function decls

This commit is contained in:
Dmitry Vasilev
2023-06-10 20:17:04 +03:00
parent 280d41f153
commit b774063b79
2 changed files with 21 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ const codegen_function_expr = (node, node_cxt) => {
const decl = node.is_arrow
? `(${args}) => `
: `function ${node.name}(${args})`
: `function(${args})`
const call = (node.is_async ? 'async ' : '') + decl + (
// TODO gensym __obj, __fn