Skip to content

Commit

Permalink
fix(runtime-core): fix Object props validation for objects with custo…
Browse files Browse the repository at this point in the history
…m toStringTag

fix #1872
  • Loading branch information
yyx990803 committed Aug 17, 2020
1 parent 2771bc7 commit 6ccd9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ function assertType(value: unknown, type: PropConstructor): AssertionResult {
valid = value instanceof type
}
} else if (expectedType === 'Object') {
valid = toRawType(value) === 'Object'
valid = isObject(value)
} else if (expectedType === 'Array') {
valid = isArray(value)
} else {
Expand Down

0 comments on commit 6ccd9ac

Please sign in to comment.