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
+8
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;
}
}