Closed
Description
Hi
A promising guide I think!
I found a little mistake in https://github.com/mbeaudru/modern-js-cheatsheet#promises. You say:
a) "So it doesn't have a current state."
b) "When called, the promise body runs".
But, according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
a) the promise Object is immediately in pending state after instance creation (also Promise A+ says this)
b) the executor is executed immediately during promise object construction (Promise A+ spec did not say anything about when executor is to be executed)
Metadata
Assignees
Labels
No labels