您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

experimentalWarning.js 460B

1234567891011121314151617
  1. 'use strict'
  2. var experimentalWarnings = new Set();
  3. function emitExperimentalWarning(feature) {
  4. if (experimentalWarnings.has(feature)) return;
  5. var msg = feature + ' is an experimental feature. This feature could ' +
  6. 'change at any time';
  7. experimentalWarnings.add(feature);
  8. process.emitWarning(msg, 'ExperimentalWarning');
  9. }
  10. function noop() {}
  11. module.exports.emitExperimentalWarning = process.emitWarning
  12. ? emitExperimentalWarning
  13. : noop;