]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): fix Object props validation for objects with custom toStringTag
authorEvan You <yyx990803@gmail.com>
Mon, 17 Aug 2020 15:25:27 +0000 (11:25 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 17 Aug 2020 15:25:38 +0000 (11:25 -0400)
fix #1872

packages/runtime-core/src/componentProps.ts

index 90d28015b3a6931130b5fbb9eb28e8b8b5d3a37a..96b365b50ec7bfc531a003347f14c7d1f3ad8e60 100644 (file)
@@ -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 {