NOTE: This document describes APIs that provide support to external debugging tools. Do not use these APIs in application code.
The following APIs allow debugging tools to receive information about promise errors. For example, when.js uses them in its builtin unhandled rejection reporting feature, as well as in when/monitor/console
to display long async stack traces.
A debugger could use them to do any number of things, such as display a list of "currently unhandled promise rejections", or send error reports to an error aggregation service.