Hello!
I'm wondering if this is expected behavior?
// node repl with latest when
> when = require('when')
> when.settle([ Promise.reject('help'), Promise.resolve('yesss') ])
{ state: 'pending' }
> Potentially unhandled rejection [1] help (WARNING: non-Error used)
> when.settle([ when.reject('help'), when.resolve('yesss') ])
{ state: 'pending' }
Notice that we get a warning when using global Promises but we do not get that warning with when promises. It has caused some painful debugging to find that it wasn't actually unhandled.
Thanks for your time and library!