Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
460 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | var experimentalWarnings = new Set();
|
---|
| 4 |
|
---|
| 5 | function emitExperimentalWarning(feature) {
|
---|
| 6 | if (experimentalWarnings.has(feature)) return;
|
---|
| 7 | var msg = feature + ' is an experimental feature. This feature could ' +
|
---|
| 8 | 'change at any time';
|
---|
| 9 | experimentalWarnings.add(feature);
|
---|
| 10 | process.emitWarning(msg, 'ExperimentalWarning');
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | function noop() {}
|
---|
| 14 |
|
---|
| 15 | module.exports.emitExperimentalWarning = process.emitWarning
|
---|
| 16 | ? emitExperimentalWarning
|
---|
| 17 | : noop;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.