diff options
Diffstat (limited to 'node_modules/currently-unhandled/index.js')
| -rw-r--r-- | node_modules/currently-unhandled/index.js | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/currently-unhandled/index.js b/node_modules/currently-unhandled/index.js new file mode 100644 index 0000000..238b9d9 --- /dev/null +++ b/node_modules/currently-unhandled/index.js @@ -0,0 +1,12 @@ +'use strict'; +var core = require('./core'); + +module.exports = function (p) { +	p = p || process; +	var c = core(); + +	p.on('unhandledRejection', c.onUnhandledRejection); +	p.on('rejectionHandled', c.onRejectionHandled); + +	return c.currentlyUnhandled; +};  | 
