File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import { inspect } from './inspect' ;
22
3+ const isProduction = typeof process !== 'undefined' && process . env && process . env . NODE_ENV === 'production' ;
4+
35/**
46 * A replacement for instanceof which includes an error warning when multi-realm
57 * constructors are detected.
@@ -9,7 +11,7 @@ import { inspect } from './inspect';
911export const instanceOf : ( value : unknown , constructor : Constructor ) => boolean =
1012 /* c8 ignore next 6 */
1113 // FIXME: https://github.com/graphql/graphql-js/issues/2317
12- globalThis . process && globalThis . process . env . NODE_ENV === 'production'
14+ isProduction
1315 ? function instanceOf ( value : unknown , constructor : Constructor ) : boolean {
1416 return value instanceof constructor ;
1517 }
You can’t perform that action at this time.
0 commit comments