Skip to content

Commit 9c6b6da

Browse files
committed
check "globalThis.process" before accessing it
1 parent 076972e commit 9c6b6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsutils/instanceOf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
1111
// FIXME: https://github.com/graphql/graphql-js/issues/2317
1212
// eslint-disable-next-line no-undef
13-
process.env.NODE_ENV === 'production'
13+
globalThis.process?.env.NODE_ENV === 'production'
1414
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1515
return value instanceof constructor;
1616
}

0 commit comments

Comments
 (0)