From 6ccd9ac2bc8ea09978fbb99c272bff6614387e90 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 17 Aug 2020 11:25:27 -0400 Subject: [PATCH] fix(runtime-core): fix Object props validation for objects with custom toStringTag fix #1872 --- packages/runtime-core/src/componentProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index 90d28015b3a..96b365b50ec 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -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 {