Hacker News new | ask | show | jobs
by cowsandmilk 695 days ago
JavaScript doesn’t make the guarantee you are claiming here
2 comments

Yes, it does. Promise continuations always run in the micro task queue per the standard. I guess if someone mutates the promise prototype it’s not guaranteed, but the spec does guarantee this order
What do you mean? Does JavaScript allow the `then` of a promise to execute before the contents of the promise?