dillon1000/react

Commit

Fix infinite recursion in browsers with iterators

My old code here didn't work properly -- for a string child, getIteratorFn would return an iterator that gave each character as its own string, and we'd attempt to loop over that too.

Tests now work in Chrome again.
Browse files
Changed paths2 files
First-parent comparison
M src/classic/element/ReactElementValidator.js ModifiedM src/classic/element/__tests__/ReactElementValidator-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…