mirror of
https://github.com/leporello-js/leporello-js
synced 2026-03-19 23:54:30 -07: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