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

Function err

test/parallel/test-eventtarget.js:323–328  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

321 });
322
323 const err = (arg) => ({
324 code: 'ERR_INVALID_ARG_TYPE',
325 name: 'TypeError',
326 message: 'The "listener" argument must be an instance of EventListener.' +
327 common.invalidArgTypeHelper(arg),
328 });
329
330 [
331 'foo',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected