diff --git a/src/eval.js b/src/eval.js index ee69921..39c83ca 100644 --- a/src/eval.js +++ b/src/eval.js @@ -71,6 +71,7 @@ const codegen_function_expr = (node, cxt) => { const args = node.function_args.children.map(do_codegen).join(',') const call = (node.is_async ? 'async ' : '') + `(${args}) => ` + ( + // TODO gensym __obj, __fn (node.body.type == 'do') ? '{ let __obj, __fn; ' + do_codegen(node.body) + '}' : '{ let __obj, __fn; return ' + do_codegen(node.body) + '}' diff --git a/test/test.js b/test/test.js index 314978f..453bf9f 100644 --- a/test/test.js +++ b/test/test.js @@ -2922,7 +2922,7 @@ const y = x()` ) }), - /* + /* TODO test('async/await move_cursor bug', async () => { const i = await test_initial_state_async(` await new Promise(resolve => globalThis.setTimeout(resolve, 1))