blob: ca8574124674dfabf2e6d15ab80e27c707c3ae79 [file] [log] [blame]
var Promise = require('../promise');
module.exports = {
resolved: Promise.resolve,
rejected: Promise.rejected,
deferred: function() {
var obj = {};
var prom = new Promise(function(resolve, reject) {
obj.resolve = resolve;
obj.reject = reject;
});
obj.promise = prom;
return obj;
}
};