Files
FloatApi/node_modules/node-environment-flags/shim.js
T
2022-03-07 22:07:57 +07: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;
};