mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Revert part of createElement validation changes from #6859
This commit is contained in:
@@ -184,8 +184,7 @@ function validatePropTypes(element) {
|
||||
var ReactElementValidator = {
|
||||
|
||||
createElement: function(type, props, children) {
|
||||
var validType = typeof type === 'string' || typeof type === 'function' ||
|
||||
(type !== null && typeof type === 'object');
|
||||
var validType = typeof type === 'string' || typeof type === 'function';
|
||||
// We warn in this case but don't throw. We expect the element creation to
|
||||
// succeed and there will likely be errors in render.
|
||||
warning(
|
||||
|
||||
@@ -23,7 +23,7 @@ describe('ReactCoroutine', function() {
|
||||
spyOn(console, 'log');
|
||||
});
|
||||
|
||||
it('should render a coroutine', function() {
|
||||
xit('should render a coroutine', function() {
|
||||
|
||||
var ops = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user