mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #3781 from spicyj/elval
Fix infinite recursion in browsers with iterators
This commit is contained in:
commit
a56d0d6dc5
2 files changed
+4
-2
No files matched your search
@@ -194,7 +194,10 @@ function validateChildKeys(node, parentType) {
|
||||
validateChildKeys(child, parentType);
|
||||
}
|
||||
}
|
||||
} else if (ReactElement.isValidElement(node)) {
|
||||
} else if (
|
||||
typeof node === 'string' || typeof node === 'number' ||
|
||||
ReactElement.isValidElement(node)
|
||||
) {
|
||||
// This element was passed in a valid location.
|
||||
return;
|
||||
} else if (node) {
|
||||
|
||||
@@ -173,7 +173,6 @@ describe('ReactElementValidator', function() {
|
||||
it('does not warn for keys when passing children down', function() {
|
||||
spyOn(console, 'error');
|
||||
|
||||
debugger;
|
||||
var Wrapper = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user