MCPcopy
hub / github.com/di-sukharev/opencommit / makeException

Function makeException

out/cli.cjs:2355–2360  ·  view source on GitHub ↗
(ErrorType, message, options)

Source from the content-addressed store, hash-verified

2353 "node_modules/webidl-conversions/lib/index.js"(exports2) {
2354 "use strict";
2355 function makeException(ErrorType, message, options) {
2356 if (options.globals) {
2357 ErrorType = options.globals[ErrorType.name];
2358 }
2359 return new ErrorType(`${options.context ? options.context : "Value"} ${message}.`);
2360 }
2361 function toNumber(value, options) {
2362 if (typeof value === "bigint") {
2363 throw makeException(TypeError, "is a BigInt which cannot be converted to a number", options);

Callers 4

toNumberFunction · 0.85
createIntegerConversionFunction · 0.85
createLongLongConversionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…