Files
react-native-devtools-frontend/node_modules/node-environment-flags/shim.js
T
2019-10-21 08:08:56 +02:00

17 lines
372 B
JavaScript

'use strict';
const getPolyfill = require('./polyfill');
module.exports = () => {
const polyfill = getPolyfill();
if (polyfill !== process.allowedNodeEnvironmentFlags) {
Object.defineProperty(process, 'allowedNodeEnvironmentFlags', {
writable: true,
enumerable: true,
configurable: true,
value: polyfill
});
}
return polyfill;
};