Skip to content

Commit

Permalink
Emit no experimental warning in browser.
Browse files Browse the repository at this point in the history
closes nodejs#361
  • Loading branch information
jimmywarting committed Oct 2, 2018
1 parent 6a1a622 commit 19ded37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion experimentalWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ function emitExperimentalWarning(feature) {
process.emitWarning(msg, 'ExperimentalWarning');
}

module.exports.emitExperimentalWarning = emitExperimentalWarning;
function noop() {}

module.exports.emitExperimentalWarning = process.emitWarning
? emitExperimentalWarning
: noop;

0 comments on commit 19ded37

Please sign in to comment.