MCPcopy
hub / github.com/cujojs/when / run

Function run

test/monitor/unhandled-handled-later.js:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

Calls 2

setTimeoutFunction · 0.85
rejectFunction · 0.70

Tested by

no test coverage detected