Rewrote much of the constructor to include properly keeping track of the 3 possible states, and to store the resolution/rejection value if the resolve and reject callbacks haven't yet been specified in a '.then(...)', or store the callbacks if the resollution/rejection value hasn't been produced yet
Rewrote much of the constructor to include properly keeping track of the 3 possible states, and to store the resolution/rejection value if the resolve and reject callbacks haven't yet been specified in a '.then(...)', or store the callbacks if the resollution/rejection value hasn't been produced yet

philraj/promises-from-scratch