Hacker News new | past | comments | ask | show | jobs | submit login

JavaScript doesn’t make the guarantee you are claiming here



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?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: