author | Alan Dipert
<alan@dipert.org> 2019-11-05 17:10:36 UTC |
committer | Alan Dipert
<alan@dipert.org> 2019-11-05 17:10:36 UTC |
parent | 967de95c783a8dae54616637463d7cbff8b29b0f |
jacl.js | +15 | -0 |
diff --git a/jacl.js b/jacl.js index 7694dcb..2a84251 100644 --- a/jacl.js +++ b/jacl.js @@ -1599,6 +1599,21 @@ const emitNode = (print, node) => { print('}\n'); } } + if (node.lambdaList.aux.length) { + print('var '); + for (let i = 0; i < node.lambdaList.aux.length; i++) { + aspec = node.lambdaList.aux[i]; + print(mungeSym(aspec.name, 'local')); + print('='); + if (aspec.initform === UNDEFINED) { + print('null'); + } else { + emitNode(print, aspec.initform); + } + if (i < node.lambdaList.aux.length-1) print(','); + } + print(';\n'); + } emitBlock(print, node.statements, node.ret); print('})'); break;