mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
WIP
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -2588,4 +2588,16 @@ const y = x()`
|
||||
// must be discarded
|
||||
assert_equal(get_deferred_calls(result), null)
|
||||
}),
|
||||
|
||||
test_only('async/await', () => {
|
||||
const code = `
|
||||
const x = async () => 123
|
||||
const y = async () => await x()
|
||||
y()
|
||||
`
|
||||
const s = test_initial_state(code)
|
||||
const move = COMMANDS.move_cursor(s, code.indexOf('await x()')).state
|
||||
log('m', root_calltree_node(move).children[0].children[0].value)
|
||||
//log(s.parse_result.modules[''])
|
||||
}),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user