Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bd5e95d

Browse files
mobseanMäder, Robin (pbmr15)
authored and
Mäder, Robin (pbmr15)
committedFeb 13, 2024
fix#3978
1 parent 9c90a23 commit bd5e95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/jsutils/instanceOf.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { inspect } from './inspect.js';
99
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
1111
// FIXME: https://github.com/graphql/graphql-js/issues/2317
12-
globalThis.process != null && globalThis.process.env.NODE_ENV === 'production'
12+
globalThis.process != null && globalThis[process.env.NODE_ENV] === 'production'
1313
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1414
return value instanceof constructor;
1515
}

0 commit comments

Comments
 (0)
Please sign in to comment.