-
What version of bluebird is the issue happening on?
3.3.1
-
What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Node 4
-
Did this issue happen with earlier version of bluebird?
I don't know.
Running this
const Promise = require('bluebird');
Promise.reject(new Error('foo'))
.catch((err) => {
setImmediate(() => { throw err; });
});
..prints:
$ node foo
/Users/satazor/Work/some-project/foo:5
setImmediate(() => { throw err; });
^
Error: foo
at Object.<anonymous> (/Users/satazor/Work/some-project/foo:3:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
satazor@Andres-MacBook-Pro-2
Running this
const Promise = require('bluebird');
Promise.reject(new Error('foo'))
.done()
..prints
$ node foo
Fatal Error: foo
at Object.<anonymous> (/Users/satazor/Work/some-project/foo:8:16)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3satazor@Andres-MacBook-Pro-2
Note that the .done() version does not have a trailing \n.
What version of bluebird is the issue happening on?
3.3.1What platform and version? (For example Node.js 0.12 or Google Chrome 32)
Node 4Did this issue happen with earlier version of bluebird?
I don't know.
Running this
..prints:
Running this
..prints
Note that the .done() version does not have a trailing \n.