Skip to content

Commit

Permalink
[core] Guard against bad Symbol polyfills (#17336)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandelancey authored and eps1lon committed Sep 6, 2019
1 parent f8076d6 commit 310409e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui-styles/src/ThemeProvider/nested.js
@@ -1,3 +1,3 @@
const hasSymbol = typeof Symbol === 'function';
const hasSymbol = typeof Symbol === 'function' && Symbol.for;

export default (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');

0 comments on commit 310409e

Please sign in to comment.