Twitter | Search | |
Jordan Harband
Promise.prototype.finally is now stage 4, per today’s ! Spec PR: Polyfill/shim:
ES Proposal spec-compliant shim for Promise.prototype.finally
Reply Retweet Like More
Ben Jan 24
Replying to @ljharb @TC39
...finally
Reply Retweet Like
Jordan Harband Jan 24
Replying to @sangster @TC39
Reply Retweet Like
sMyle Jan 24
Replying to @ljharb @sangster @TC39
Careful with these circular references
Reply Retweet Like
Ben Jan 24
good catch
Reply Retweet Like
Kamuela Franco Jan 24
Replying to @ljharb @TC39
Synchronous code already has a finally keyword though, correct?
Reply Retweet Like
Jordan Harband Jan 24
Replying to @Kamuela
indeed, that’s why asynchronous code (via promises) needed it too :-)
Reply Retweet Like
Kamuela Franco Jan 24
Replying to @ljharb
In a sense then, we await simpletons had this and forgot explicit promise unpacking was a thing.
Reply Retweet Like
Jordan Harband Jan 24
Replying to @Kamuela
which is a problem, because async/await in no way allows you to forget about Promises. It’s not a replacement, it’s a supplement.
Reply Retweet Like
olexandr Jan 25
Replying to @ljharb @TC39
Great!!!
Reply Retweet Like