mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
await argument bug
This commit is contained in:
@@ -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) + '}'
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user