MCPcopy
hub / github.com/jimp-dev/jimp / throwUndefinedChar

Function throwUndefinedChar

packages/test-utils/src/index.ts:16–30  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

14}
15
16function throwUndefinedChar(char: string) {
17 const cList: string[] = [];
18
19 hashForEach(colors, (k, c) => {
20 cList.push(k + "=" + c.toString(16).padStart(8, "0"));
21 });
22
23 throw new Error(
24 'The char "' +
25 char +
26 '" do not defines a color. ' +
27 "This are the valid chars: " +
28 cList.join(" "),
29 );
30}
31
32const colors: Record<string | number, number> = {
33 "▴": 0xff0000ff, // Red

Callers 1

makeTestImageFunction · 0.85

Calls 2

hashForEachFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…