mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix bug with function decls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user