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

Function reviver

tools/lint-readme-lists.mjs:87–90  ·  view source on GitHub ↗
(_, value)

Source from the content-addressed store, hash-verified

85
86if (argv[2] && argv[2] !== '{}') {
87 const reviver = (_, value) =>
88 (typeof value === 'string' && value[0] === '[' && value.at(-1) === ']' ?
89 new Set(JSON.parse(value)) :
90 value);
91 assert.deepStrictEqual(JSON.parse(argv[2], reviver), { ...actualMembers });
92} else {
93 console.warn('Skipping the check of GitHub teams membership.');

Callers

nothing calls this directly

Calls 2

parseMethod · 0.65
atMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…