Skip to content

Promise.all() dies silently if no resolve #29355

@acenturyandabit

Description

@acenturyandabit
  • Version:12.9.1
  • Platform:Linux (debian)
  • Subsystem: Promise, i guess

When I create a Promise.all() call with a promise that never resolves, instead of throwing an error, it just silently kills the program, even if other things are going on (e.g. running a server).

Here's minimal code:
[expected: "done!" or an error or something, please]

async function a(){
    await Promise.all([new Promise((resolve)=>{

    })]);
    console.log("done!");
}
a();

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions