finally

finally

仕様書

挙動

[7] finally コールバック内で例外投げられたり拒絶する約束を返したりすると、 元の約束の結果に関わらず、その例外が返されます。

[8] それ以外で finally コールバックの返した値を解決した結果は、捨てられます。

歴史

[1] 174503 – [ES] Add support finally to Promise () <https://bugs.webkit.org/show_bug.cgi?id=174503>

[2] Promise.prototype.finally: add tests by ljharb · Pull Request #1156 · tc39/test262 () <https://github.com/tc39/test262/pull/1156>

[3] Promise.prototype.finally  |  Web  |  Google Developers () <https://developers.google.com/web/updates/2017/10/promise-finally>

[4] New in Chrome 63  |  Web  |  Google Developers () <https://developers.google.com/web/updates/2017/12/nic63?utm_source=feed&utm_medium=feed&utm_campaign>

[5] Promise.prototype.finally() - JavaScript | MDN () <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally>