4 ms·
JavaScript doesn’t make the guarantee you are claiming here
by cowsandmilk 2y ago
JavaScript doesn’t make the guarantee you are claiming here
- fwip 2y agoWhat do you mean? Does JavaScript allow the `then` of a promise to execute before the contents of the promise?
- jitl 2y agoYes, 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