Skip to content

Commit 50ec98f

Browse files
committed
f
1 parent b2a9b61 commit 50ec98f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/dev/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { inspect } from '../jsutils/inspect.js';
22
import type { Constructor } from '../jsutils/instanceOf.js';
3-
import { symbolForGraphQLInstanceOfCheck } from '../jsutils/instanceOf.js';
43

54
/**
65
* An additional check to be included within instanceOf warning when
@@ -43,5 +42,5 @@ spurious results.`,
4342
}
4443
}
4544

46-
(globalThis as any)[symbolForGraphQLInstanceOfCheck] =
45+
(globalThis as any)[Symbol.for('graphql.instanceOfCheck')] =
4746
developmentInstanceOfCheck;

src/jsutils/instanceOf.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
export const symbolForGraphQLInstanceOfCheck = Symbol.for(
2-
'graphql.instanceOfCheck',
3-
);
4-
51
/**
62
* "src/development.ts" includes an additional check for development mode
73
* which throws on multiple versions of graphql-js.
@@ -12,7 +8,7 @@ export const symbolForGraphQLInstanceOfCheck = Symbol.for(
128
* 2. if the "development" condition is set.
139
*/
1410
const check: (_value: unknown, _constructor: Constructor) => void =
15-
(globalThis as any)[symbolForGraphQLInstanceOfCheck] ??
11+
(globalThis as any)[Symbol.for('graphql.instanceOfCheck')] ??
1612
((_value: unknown, _constructor: Constructor) => {
1713
/* no-op */
1814
});

0 commit comments

Comments
 (0)