As expected, I'm hitting some nasty problems where user code in the concurrency course can crash the app. E.g., if you write code that leaks a promise with a chaining cycle, then it will result in an unhandled rejection, which makes us show the "oops" page.
Is it possible for you to tag either all user created promises or all app code promises? (By tag I literally mean `promise.came_from_known_place = true`) You can access the original promise from the unhandled rejection event
-
-
I can't tag user promises, but I could theoretically tag all of ours. But that would mean permanently excising all async/await from our code. And we'd have to somehow force our special promises into every promise-using library that we use. So maybe possible but very difficult.
-
Wouldn't modifying the prototype ctor of the browser's Promise automatically force it onto all the libraries?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.