File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,4 +94,4 @@ export function Fragment(props) {
9494 * @returns {vnode is VNode }
9595 */
9696export const isValidElement = vnode =>
97- vnode != NULL && vnode . constructor == UNDEFINED ;
97+ vnode != NULL && vnode . constructor === UNDEFINED ;
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ function constructNewChildrenArray(
205205 NULL ,
206206 NULL
207207 ) ;
208- } else if ( childVNode . constructor == UNDEFINED && childVNode . _depth > 0 ) {
208+ } else if ( childVNode . constructor === UNDEFINED && childVNode . _depth > 0 ) {
209209 // VNode is already in use, clone it. This can happen in the following
210210 // scenario:
211211 // const reuse = <div />
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export function diff(
6464
6565 // When passing through createElement it assigns the object
6666 // constructor as undefined. This to prevent JSON-injection.
67- if ( newVNode . constructor != UNDEFINED ) return NULL ;
67+ if ( newVNode . constructor !== UNDEFINED ) return NULL ;
6868
6969 // If the previous diff bailed out, resume creating/hydrating.
7070 if ( oldVNode . _flags & MODE_SUSPENDED ) {
You can’t perform that action at this time.
0 commit comments