dillon1000/react
Commit
Browse files 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.
Changed paths1 file
First-parent comparisonsrc/isomorphic/classic/types/ReactPropTypes.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…