You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
372 B
17 lines
372 B
3 years ago
|
'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;
|
||
|
};
|