Skip to content

Commit 562b4a4

Browse files
committed
replaced for-of
1 parent ef96fde commit 562b4a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/assert.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ function compareBranch(
687687
comparedObjects.add(actual);
688688

689689
// Check if all keys and values recursively match
690-
for (const key of keysActual) {
690+
for (let i = 0; i < keysActual.length; i++) {
691+
const key = keysActual[i];
691692
if (
692693
!keysExpected.includes(key) ||
693694
!compareBranch(actual[key], expected[key], loose, comparedObjects)

0 commit comments

Comments
 (0)