ohctechv3/.svn/pristine/e7/e79d248a174d8f8aa65c252a42888ae395df3e59.svn-base

23 lines
378 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
'use strict';
var isProduction = process.env.NODE_ENV === 'production';
function warning(condition, message) {
if (!isProduction) {
if (condition) {
return;
}
var text = "Warning: " + message;
if (typeof console !== 'undefined') {
console.warn(text);
}
try {
throw Error(text);
} catch (x) {}
}
}
module.exports = warning;