Skip to content

RFE: Clarify intent re resolve(promise) #95

@FGasper

Description

@FGasper

Hello,

I see the following paragraph in the test suite docs:

Note that the tests will never pass a promise or a thenable as a resolution. That means that we never use the promise- or thenable-accepting forms of the resolve operation directly, and instead only use the direct fulfillment operation, since fulfill and resolve are equivalent when not given a thenable.

What is the intended behaviour, though, when a promise is given directly to deferred.resolve()? Should the original promise’s resolution be that of the “subpromise”, or should the subpromise itself be the original promise’s resolution?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions