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

Function emitWarningSync

lib/internal/process/warning.js:183–185  ·  view source on GitHub ↗
(warning, type, code, ctor)

Source from the content-addressed store, hash-verified

181}
182
183function emitWarningSync(warning, type, code, ctor) {
184 process.emit('warning', createWarningObject(warning, type, code, ctor));
185}
186
187function createWarningObject(warning, type, code, ctor, detail) {
188 assert(typeof warning === 'string');

Callers 3

embedderRunCjsFunction · 0.85
requireForUserSnapshotFunction · 0.85

Calls 2

createWarningObjectFunction · 0.85
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…