Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise Execution #39

Closed
ideadapt opened this issue Sep 26, 2017 · 0 comments
Closed

Promise Execution #39

ideadapt opened this issue Sep 26, 2017 · 0 comments

Comments

@ideadapt
Copy link

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)

soyaine added a commit to soyaine/modern-js-cheatsheet that referenced this issue Sep 29, 2017
* mbeaudru/modern-js-cheatsheet/master:
  ToC Fix
  Fix mbeaudru#39
  Fix mbeaudru#37
  Fixed FR locale for mozilla developer page (mbeaudru#40)
  Fix mbeaudru#36
  Translate chinese(simplified) (mbeaudru#35)

# Conflicts:
#	translations/zh-CN.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant