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.
1 parent 62d545a commit a531d63Copy full SHA for a531d63
src/jsutils/instanceOf.ts
@@ -7,10 +7,10 @@ const isProduction =
7
process.env.NODE_ENV === 'production';
8
9
/**
10
- * A utility which throws an error warning when multi-realm constructors are detected,
11
- * triggered by a positive brand check and a negative instanceof (for an object).
+ * A replacement for instanceof which includes an error warning when multi-realm
+ * constructors are detected.
12
*
13
- * When not in development mode, only the brand check is used.
+ * In production, it simply uses the provided brand check value.
14
15
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
16
* See: https://webpack.js.org/guides/production/
0 commit comments