frontend/.pnpm-store/v3/files/7b/ca528e39fb26a91b4d04fdbfa589ed3ce70a88e837bd8c8e0e28e61453e9b19e54d9a3b0ff2649f0f70362ab827a015e1d21d22409bf5b2b38c2c20418a80b

15 lines
404 B
Plaintext

"use strict";
var resolveException = require("../lib/resolve-exception")
, is = require("./is");
module.exports = function (value/*, options*/) {
if (is(value)) return value;
var options = arguments[1];
var errorMessage =
options && options.name
? "Expected a thenable for %n, received %v"
: "%v is not a thenable";
return resolveException(value, errorMessage, options);
};