Revert part of createElement validation changes from #6859

This commit is contained in:
Paul O’Shannessy
2016-06-14 18:16:41 -07:00
parent 909d647801
commit 2a411dd248
2 changed files with 2 additions and 3 deletions
@@ -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 = [];