alkemics/CancelablePromise

`then` not called when promise returns `undefined`

Closed this issue · 1 comments

This code:

CancelablePromise.resolve(undefined).then(console.log)

doesn't log undefined whereas this code:

Promise.resolve(undefined).then(console.log)

does. Is it expected?

My bad! It does log undefined. My error is coming from somewhere else