You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
I note that ES6’s promise specification indicates explicitly that in such cases the “subpromise”’s resolution value is also the original’s resolution value.
Hello,
I see the following paragraph in the test suite docs:
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!
The text was updated successfully, but these errors were encountered: