Skip to content

PromiseArray rejection handler only handles one rejected promise #138

Description

@jparker-hbo

Change afa323b fixed issue #135 so now this situation is no longer unhandled:

Promise.all([Promise.rejected("one")]).catch(...);

But if you do two or more, only the first one is handled:

Promise.all([Promise.rejected("one"), Promise.rejected("two")]).catch(...);

I'm not sure what the right behavior is, but maybe the first rejection should call the array's reject handler and then any other rejections are ignored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions