()
| 17 | // var Promise = require('bluebird'); |
| 18 | |
| 19 | function run() { |
| 20 | var p = new Promise(function(_, reject) { |
| 21 | reject(new Error('unhandled-handled-later')); |
| 22 | }); |
| 23 | |
| 24 | setTimeout(function() { |
| 25 | // console.log('***Handling error now***'); |
| 26 | p['catch'](function() { /* handled by squelching */ }); |
| 27 | }, 1000); |
| 28 | } |
| 29 | |
| 30 | run(); |
| 31 | // run(); |
no test coverage detected