Message from JavaScript discussions

December 2018

— Then's and catch's


It wouldn't be able to tell if the thenable will ever be set for the error, so it can't decide if the error is unhandled or not

— Two slots for values

— Return value / thrown value

— If the error is thrown prior to the thenable being set

— Which is fine

— See, the dead zone is a bit worse than promises really

— Promises have the same issue

— Let me show you

— spawn(coroutine).then().catch() works fine, but I can't do this

— Even then it doesn't fully work fine and has the same issues, just smaller dead zone

— See how the promise logs a bunch of garbage before I attach the catcher