We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 076972e commit 84bb146Copy full SHA for 84bb146
src/jsutils/instanceOf.ts
@@ -9,8 +9,7 @@ import { inspect } from './inspect';
9
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
10
/* c8 ignore next 6 */
11
// FIXME: https://github.com/graphql/graphql-js/issues/2317
12
- // eslint-disable-next-line no-undef
13
- process.env.NODE_ENV === 'production'
+ globalThis.process?.env.NODE_ENV === 'production'
14
? function instanceOf(value: unknown, constructor: Constructor): boolean {
15
return value instanceof constructor;
16
}
0 commit comments