Skip to content

Commit 672f2e1

Browse files
committed
undefined prototype
1 parent 978c0b9 commit 672f2e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diff/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export function diff(
8080
try {
8181
let c, isNew, oldProps, oldState, snapshot, clearProcessingException;
8282
let newProps = newVNode.props;
83-
const isClassComponent =
84-
'prototype' in newType && newType.prototype.render;
83+
const isClassComponent = newType.prototype && newType.prototype.render;
8584

8685
// Necessary for createContext api. Setting this property will pass
8786
// the context value as `this.context` just for this component.

0 commit comments

Comments
 (0)