Skip to content

Promise Resolution Procedure 3.iii: What if then never calls its arguments? #258

@jcsahnwaldt

Description

@jcsahnwaldt

In The Promise Resolution Procedure step 3.iii, cases a through d are considered:

If then is a function, call it with ... first argument resolvePromise, and second argument rejectPromise, where:
a. If/when resolvePromise is called...
b. If/when rejectPromise is called...
c. If both resolvePromise and rejectPromise are called, or multiple calls...
d. If calling then throws an exception e...

But what if then neither throws an exception nor calls one of its arguments? It may simply do nothing and return. Probably a rare case, but it looks like an omission to me. Or am I missing something?

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