-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
[email protected]
[email protected]
[email protected]
async function test() {
try {
await Promise.reject(new Error('err'));
} catch (error) {
if (true) {
await Promise.resolve();
}
} finally {
console.log('finally');
}
}
The problem is in an if
block inside of catch
. It generates an empty try {} catch ($boundEx)
inside of $Try_1_Catch
which results in $Try_1_Finally
never being called and promise never being resolved.
If you run this code finally
block is never reached
Metadata
Metadata
Assignees
Labels
No labels