dillon1000/react

Commit

More specific typeof check for polyfilled Symbol

Let's get more specific with our tests. Symbol has to be a function if
it's a polyfill. There are no object polyfills out there. (If there is,
ping me and I'll add support)

Instead of checking if Symbol is undefined, let's check if it's a
function instead since instanceof is depending that Symbol is already a
function.
Browse files
Changed paths1 file
First-parent comparison
M src/isomorphic/classic/types/ReactPropTypes.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…