frontend/.pnpm-store/v3/files/47/582818f005306220b1553ccd5320dc02b985010367bd48b6627a70cfcc18a4fd4bee60d1d2c70b0aed060e097a4ea05f7a4ed7cc599b68ab078e96d7ec4a14

14 lines
436 B
Plaintext

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