Skip to content

Commit e0f522a

Browse files
committed
add typeof process === 'undefined' to make everybody happy
1 parent 6cc7d06 commit e0f522a

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
@@ -8,7 +8,7 @@ import { inspect } from './inspect.js';
88
*/
99
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
11-
process.env.NODE_ENV === 'production'
11+
typeof process === 'undefined' || process.env.NODE_ENV === 'production'
1212
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1313
return value instanceof constructor;
1414
}

0 commit comments

Comments
 (0)