dillon1000/react

Commit

check that console exists before warning

Console is undefined in earlier versions of IE when it is not open. This causes an uncaught exception, and breaks applications in these versions of IE when attempting to warn when the  console is closed.
Admittedly, console will usually be open when testing in development, but still React should not break the application when it is not.
Browse files
Changed paths1 file
First-parent comparison
M src/vendor/core/warning.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…