UNPKG

strong-debugger

Version:

DevTools Remote Debugging Protocol provider for Node.js and io.js

14 lines (11 loc) 374 B
'use strict'; /* Use Bluebird as the Promise implementation */ var Promise = module.exports = require('bluebird'); Promise.waitForEvent = function(emitter, name) { return new Promise(function(resolve, reject) { emitter.once(name, resolve); }); }; Promise.onPossiblyUnhandledRejection(function(err) { console.error('POSSIBLY UNHANDLED REJECTION', err.stack); });