Skip to content

Commit 792de25

Browse files
author
Guillaume Chau
committed
fix: no __proto__
1 parent 953cbb4 commit 792de25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function replacer (key) {
187187
return encodeCache.cache(val, () => getCustomInstanceDetails(val))
188188
} else if (typeof val.render === 'function') {
189189
return encodeCache.cache(val, () => getCustomComponentDefinitionDetails(val))
190-
} else if (val.__proto__ && val.__proto__.constructor && val.__proto__.constructor.name === 'VNode') {
190+
} else if (val.constructor && val.constructor.name === 'VNode') {
191191
return `[native VNode <${val.tag}>]`
192192
}
193193
} else if (Number.isNaN(val)) {

0 commit comments

Comments
 (0)