Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 1a88d10

Browse files
kozakdevelopit
authored andcommitted
IE11 seems to define Symbol but without the method 'for' (#423)
1 parent e25d060 commit 1a88d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ELEMENTS = 'a abbr address area article aside audio b base bdi bdo big blo
77

88
const REACT_ELEMENT_TYPE = (typeof Symbol!=='undefined' && Symbol.for && Symbol.for('react.element')) || 0xeac7;
99

10-
const COMPONENT_WRAPPER_KEY = typeof Symbol!=='undefined' ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';
10+
const COMPONENT_WRAPPER_KEY = (typeof Symbol!=='undefined' && Symbol.for) ? Symbol.for('__preactCompatWrapper') : '__preactCompatWrapper';
1111

1212
// don't autobind these methods since they already have guaranteed context.
1313
const AUTOBIND_BLACKLIST = {

0 commit comments

Comments
 (0)