blob: b9393335bb4cccdfa59b5d6c7f2baf77e4838d61 [file] [log] [blame]
var _isFunction =
/*#__PURE__*/
require("./_isFunction");
var _toString =
/*#__PURE__*/
require("./_toString");
function _assertPromise(name, p) {
if (p == null || !_isFunction(p.then)) {
throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
}
}
module.exports = _assertPromise;