Skip to content

Commit

Permalink
instanceOf: workaround bundler issue with process.env (#3965)
Browse files Browse the repository at this point in the history
Port of #3923 from v16 to main (v17)
  • Loading branch information
IvanGoncharov authored Sep 1, 2023
1 parent 2c42f74 commit 6102523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsutils/instanceOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { inspect } from './inspect.js';
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
/* c8 ignore next 6 */
// FIXME: https://github.com/graphql/graphql-js/issues/2317
globalThis.process?.env.NODE_ENV === 'production'
globalThis.process != null && globalThis.process.env.NODE_ENV === 'production'
? function instanceOf(value: unknown, constructor: Constructor): boolean {
return value instanceof constructor;
}
Expand Down

2 comments on commit 6102523

@Past968
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fff

@Past968
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ccx

Please sign in to comment.