There was an error while loading. Please reload this page.
comparisons.js
1 parent a5e5c7f commit f373dabCopy full SHA for f373dab
1 file changed
lib/internal/util/comparisons.js
@@ -761,7 +761,7 @@ function setEquiv(a, b, mode, memo) {
761
// If the specified value doesn't exist in the second set it's a object
762
// (or in loose mode: a non-matching primitive). Find the
763
// deep-(mode-)equal element in a set copy to reduce duplicate checks.
764
- array.push(val);
+ ArrayPrototypePush(array, val);
765
}
766
767
@@ -891,7 +891,7 @@ function mapEquiv(a, b, mode, memo) {
891
892
array = [];
893
894
- array.push(key2);
+ ArrayPrototypePush(array, key2);
895
} else {
896
// By directly retrieving the value we prevent another b.has(key2) check in
897
// almost all possible cases.
@@ -907,7 +907,7 @@ function mapEquiv(a, b, mode, memo) {
907
if (array === undefined) {
908
909
910
911
912
913
0 commit comments