* @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)
| 321 | * @param {string} ctor See documentation of process.emitWarning |
| 322 | */ |
| 323 | function 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 | |
| 333 | function filterDuplicateStrings(items, low) { |
| 334 | const map = new SafeMap(); |
no test coverage detected
searching dependent graphs…