From cf2f265574b34b28e268905a8b8f65e76521b827 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Tue, 14 Sep 2021 10:59:14 -0400 Subject: [PATCH] Apply kindOf fix from #4160 --- src/utils/kindOf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/kindOf.js b/src/utils/kindOf.js index c5395a1df6..571b1caf06 100644 --- a/src/utils/kindOf.js +++ b/src/utils/kindOf.js @@ -38,7 +38,11 @@ export function kindOf(val) { } // other - return type.slice(8, -1).toLowerCase().replace(/\s/g, '') + return Object.prototype.toString + .call(val) + .slice(8, -1) + .toLowerCase() + .replace(/\s/g, '') } function ctorName(val) {