Skip to content

Commit

Permalink
chore(uts2js): 同步uts runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Jan 20, 2025
1 parent 0cb5b81 commit f44e030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-uts-v1/lib/javascript/lib/runtime/uts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f44e030

Please sign in to comment.