Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: ensure every unhandled promise reason is wrapped in an error
This change adds more debugging context to any unhandled promise. If the unhandled promise does not have a reason which is an error, it is very difficult to determine where the error came from. This ensures every reason has an appropriate stack trace before the "next_tick" when the stack is lost. Refs: nodejs#16768
- Loading branch information