Skip to content

Commit

Permalink
Defensively verify that Symbol.for is available (#2009)
Browse files Browse the repository at this point in the history
closes #2007
  • Loading branch information
jaynetics authored and IvanGoncharov committed Jul 3, 2019
1 parent 16db20c commit cbd5c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsutils/nodejsCustomInspectSymbol.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow strict

const nodejsCustomInspectSymbol =
typeof Symbol === 'function'
typeof Symbol === 'function' && typeof Symbol.for === 'function'
? Symbol.for('nodejs.util.inspect.custom')
: undefined;

Expand Down

0 comments on commit cbd5c95

Please sign in to comment.