This commit is contained in:
Dmitry Vasilev
2022-12-17 13:55:37 +08:00
parent 769ca707eb
commit d43c4ee71c
3 changed files with 26 additions and 6 deletions

View File

@@ -2767,4 +2767,16 @@ const y = x()`
assert_equal(logs, [1, 2])
}),
test('async/await bug', async () => {
const code = `
const f = async () => {
console.log('f')
}
await f()
`
const i = await test_initial_state_async(code)
const cursor = COMMANDS.move_cursor(i, code.indexOf('console'))
}),
]