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

Function assertChannel

lib/diagnostics_channel.js:293–297  ·  view source on GitHub ↗
(value, name)

Source from the content-addressed store, hash-verified

291];
292
293function assertChannel(value, name) {
294 if (!(value instanceof Channel)) {
295 throw new ERR_INVALID_ARG_TYPE(name, ['Channel'], value);
296 }
297}
298
299function emitNonThenableWarning(fn) {
300 process.emitWarning(`tracePromise was called with the function '${fn.name || '<anonymous>'}', ` +

Callers 1

channelFromMapFunction · 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…