Reject promise if resolver function throws an exception
Merge pull request #75 from teddyzeenny/constructor-reject

Reject promise if resolver function throws an exception