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

Function emitNonThenableWarning

lib/diagnostics_channel.js:299–302  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

297}
298
299function emitNonThenableWarning(fn) {
300 process.emitWarning(`tracePromise was called with the function '${fn.name || '<anonymous>'}', ` +
301 'which returned a non-thenable.');
302}
303
304function channelFromMap(nameOrChannels, name, className) {
305 if (typeof nameOrChannels === 'string') {

Callers 1

tracePromiseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected