fix(runtime-core): fix Object props validation for objects with custom toStringTag

fix #1872
This commit is contained in:
Evan You 2020-08-17 11:25:27 -04:00
parent 2771bc750b
commit 6ccd9ac2bc

View File

@ -497,7 +497,7 @@ function assertType(value: unknown, type: PropConstructor): AssertionResult {
valid = value instanceof type valid = value instanceof type
} }
} else if (expectedType === 'Object') { } else if (expectedType === 'Object') {
valid = toRawType(value) === 'Object' valid = isObject(value)
} else if (expectedType === 'Array') { } else if (expectedType === 'Array') {
valid = isArray(value) valid = isArray(value)
} else { } else {