mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
WIP
This commit is contained in:
13
test/test.js
13
test/test.js
@@ -2821,6 +2821,19 @@ const y = x()`
|
||||
assert_equal(root.children.at(-1).children[0].fn.name, 'x')
|
||||
}),
|
||||
|
||||
test('async/await await promise wrapped to some data structure', async () => {
|
||||
const i = await assert_code_evals_to_async(
|
||||
`
|
||||
const async_fn = async () => 1
|
||||
const x = () => {
|
||||
return {promise: async_fn()}
|
||||
}
|
||||
await x().promise
|
||||
`,
|
||||
1
|
||||
)
|
||||
}),
|
||||
|
||||
/*
|
||||
// TODO
|
||||
test('async/await move_cursor', async () => {
|
||||
|
||||
Reference in New Issue
Block a user