<div dir="ltr">I find it weird that<div><br></div><div>```js</div><div><span class="gmail-message-body-wrapper"><span class="gmail-message-flex-body"><span class="gmail-message-body gmail-devtools-monospace">Promise.resolve().finally(() => {}).then(() => { console.log(1); });</span></span></span></div><div><span class="gmail-message-body-wrapper"><span class="gmail-message-flex-body"><span class="gmail-message-body gmail-devtools-monospace">Promise.resolve().then(() => {}).then(() => { console.log(2); });</span></span></span><br></div><div>```</div><div><br></div><div>prints 2 and then 1. It would have been possible to spec it in such a way that it would have printed 1 and 2.</div><div><br></div><div>On the other hand</div><div><br></div><div>```js</div><div><span class="gmail-message-body-wrapper"><span class="gmail-message-flex-body"><span class="gmail-message-body gmail-devtools-monospace">Promise.resolve().finally().then(() => { console.log(1); });</span></span></span></div><div><span class="gmail-message-body-wrapper"><span class="gmail-message-flex-body"><span class="gmail-message-body gmail-devtools-monospace">Promise.resolve().then().then(() => { console.log(2); });</span></span></span><br></div><div>```</div><div><br></div><div>prints 1 and then 2.</div></div>