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.
2 parents a9ab37d + b52c65a commit 6e7d51dCopy full SHA for 6e7d51d
src/utilities/assertValidName.js
@@ -11,8 +11,12 @@ const NAME_RX = /^[_a-zA-Z][_a-zA-Z0-9]*$/;
11
const ERROR_PREFIX_RX = /^Error: /;
12
13
// Silences warnings if an environment flag is enabled
14
-const noNameWarning =
15
- Boolean(process && process.env && process.env.GRAPHQL_NO_NAME_WARNING);
+const noNameWarning = Boolean(
+ typeof process !== 'undefined' &&
16
+ process &&
17
+ process.env &&
18
+ process.env.GRAPHQL_NO_NAME_WARNING
19
+);
20
21
// Ensures console warnings are only issued once.
22
let hasWarnedAboutDunder = false;
0 commit comments