petkaantonov/bluebird — pull request #123 by smcmurray (2014-02-28 07:02:42+00:00)
Title: Set a new Promise resolver context to the promise

It would be nice to know in a resolver whether the promise has already been fulfilled. Setting the context of `this` within the resolver allows things like:

if (this.isPending()) reject();