Post
Using async_hooks you can hook promise creation and completion. Using this you can track all promises that weren't awaited. You just need to capture a stack trace at creation so you can point out where the missing await was. Capturing a stack trace for every promise has overhead hence the opt-in!
0 reposts2 likes