From f44e03068dd8fc01db8a05fedb6653e1398e7596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Mon, 20 Jan 2025 20:40:52 +0800 Subject: [PATCH] =?UTF-8?q?chore(uts2js):=20=E5=90=8C=E6=AD=A5uts=20runtim?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js b/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js index 672a2a49a09..afaf8c4d123 100644 --- a/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js +++ b/packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js @@ -123,7 +123,7 @@ function isInstanceOf(value, type) { return value && value[Symbol.iterator]; } const isNativeInstanceofType = value instanceof type; - if (isNativeInstanceofType || typeof value !== 'object') { + if (isNativeInstanceofType || typeof value !== 'object' || value === null) { return isNativeInstanceofType; } const proto = Object.getPrototypeOf(value).constructor;