Creating a JavaScript promise from scratch, Part 7: Unhandled rejection tracking
When promises were introduced in ECMAScript 2015, they had an interesting flaw: if a promise didn’t have a rejection handler and was later rejected, you would have no idea. The rejection…