Skip to content

Commit 6ccd9ac

Browse files
committed
fix(runtime-core): fix Object props validation for objects with custom toStringTag
fix #1872
1 parent 2771bc7 commit 6ccd9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function assertType(value: unknown, type: PropConstructor): AssertionResult {
497497
valid = value instanceof type
498498
}
499499
} else if (expectedType === 'Object') {
500-
valid = toRawType(value) === 'Object'
500+
valid = isObject(value)
501501
} else if (expectedType === 'Array') {
502502
valid = isArray(value)
503503
} else {

0 commit comments

Comments
 (0)