We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9797f23 commit c8d1c79Copy full SHA for c8d1c79
1 file changed
packages/jest-util/src/create_process_object.js
@@ -17,6 +17,10 @@ const BLACKLIST = new Set(['env', 'mainModule', '_events']);
17
// mimic it (see https://nodejs.org/api/process.html#process_process_env).
18
19
function createProcessEnv() {
20
+ if (typeof Proxy === 'undefined') {
21
+ return deepCyclicCopy(process.env);
22
+ }
23
+
24
// $FlowFixMe: Apparently Flow does not understand that this is a prototype.
25
const proto: Object = Object.getPrototypeOf(process.env);
26
const real = Object.create(proto);
0 commit comments