_promise.js 208 Bytes
Newer Older
1 2 3 4 5 6
// Allow the user to customize the Promise type returned by this library.
var mypromise = global.Promise;
module.exports = function getOrSetPromise(p) {
    if (p) { mypromise = p; }
    return mypromise;
};