blob: ed0e13ec99325c8e0e71ff8c940d6fd0bcf2c4cd [file] [log] [blame]
'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;
};