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?
In The Promise Resolution Procedure step 3.iii, cases a through d are considered:
But what if
thenneither 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?