fix(runtime-core): fix Object props validation for objects with custom toStringTag
fix #1872
This commit is contained in:
parent
2771bc750b
commit
6ccd9ac2bc
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user