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

Function emitExperimentalWarning

lib/internal/util.js:323–331  ·  view source on GitHub ↗

* @param {string} feature Feature name used in the warning message * @param {string} messagePrefix Prefix of the warning message * @param {string} code See documentation of process.emitWarning * @param {string} ctor See documentation of process.emitWarning

(feature, messagePrefix, code, ctor)

Source from the content-addressed store, hash-verified

321 * @param {string} ctor See documentation of process.emitWarning
322 */
323function emitExperimentalWarning(feature, messagePrefix, code, ctor) {
324 if (experimentalWarnings.has(feature)) return;
325 experimentalWarnings.add(feature);
326 let msg = `${feature} is an experimental feature and might change at any time`;
327 if (messagePrefix) {
328 msg = messagePrefix + msg;
329 }
330 process.emitWarning(msg, 'ExperimentalWarning', code, ctor);
331}
332
333function filterDuplicateStrings(items, low) {
334 const map = new SafeMap();

Callers 15

ffi.jsFile · 0.85
measureMemoryFunction · 0.85
wasi.jsFile · 0.85
quic.jsFile · 0.85
queryObjectsFunction · 0.85
getFunction · 0.85
getPublicKeyImplFunction · 0.85
encapsulateBitsImplFunction · 0.85
encapsulateKeyImplFunction · 0.85
decapsulateBitsImplFunction · 0.85
decapsulateKeyImplFunction · 0.85
supportsMethod · 0.85

Calls 2

hasMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…