logoalt Hacker News

cute_boitoday at 2:48 AM0 repliesview on HN

I think this is correct behavior.

``` async function run() { try { await new Promise(() => { // The executor function finishes, // but it never calls resolve() or reject(). }); } finally { console.log("cleanup"); } } ```

I never expect cleanup to be logged.