MCPcopy Index your code
hub / github.com/nodejs/node / error

Function error

lib/punycode.js:53–55  ·  view source on GitHub ↗

* A generic error utility function. * @private * @param {String} type The error type. * @returns {Error} Throws a `RangeError` with the applicable error message.

(type)

Source from the content-addressed store, hash-verified

51 * @returns {Error} Throws a `RangeError` with the applicable error message.
52 */
53function error(type) {
54 throw new RangeError(errors[type]);
55}
56
57/**
58 * A generic `Array#map` utility function.

Callers 2

decodeFunction · 0.70
encodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…