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 95dac43 commit 8cbcb01Copy full SHA for 8cbcb01
src/jsutils/instanceOf.ts
@@ -9,7 +9,7 @@ import { inspect } from './inspect';
9
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
10
/* c8 ignore next 5 */
11
// FIXME: https://github.com/graphql/graphql-js/issues/2317
12
- process.env.NODE_ENV === 'production'
+ globalThis.process?.env.NODE_ENV === 'production'
13
? function instanceOf(value: unknown, constructor: Constructor): boolean {
14
return value instanceof constructor;
15
}
0 commit comments