Fix critical bugs in ObjectUtil.equals() and filterInbounds()

This commit is contained in:
心隨緣動 2025-09-11 21:00:40 +08:00 committed by GitHub
parent a89bf8e532
commit a574638cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,6 +326,14 @@ class ObjectUtil {
return false;
}
}
for (const key in b) {
if (!b.hasOwnProperty(key)) {
continue;
}
if (!a.hasOwnProperty(key)) {
return false;
}
}
return true;
}
}