Commit 9c8d1b0
assert: fix loose deepEqual arrays with undefined and null failing
The comparison has to accept these as identical.
Fixes: #61583
PR-URL: #61587
Reviewed-By: Jithil P Ponnan <jithil@outlook.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>1 parent 45d25c4 commit 9c8d1b0Copy full SHA for 9c8d1b0
2 files changed
+15-2Lines changed: 15 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/util/comparisons.js
Copy file name to clipboardExpand all lines: lib/internal/util/comparisons.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
998 | 998 | |
999 | 999 | |
1000 | 1000 | |
1001 | | - |
| 1001 | + |
1002 | 1002 | |
1003 | | - |
| 1003 | + |
| 1004 | + |
1004 | 1005 | |
1005 | 1006 | |
1006 | 1007 | |
|
Collapse file
test/parallel/test-assert-deep.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert-deep.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
126 | 126 | |
127 | 127 | |
128 | 128 | |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
129 | 134 | |
130 | 135 | |
131 | 136 | |
| ||
246 | 251 | |
247 | 252 | |
248 | 253 | |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
249 | 261 | |
250 | 262 | |
251 | 263 | |
|
0 commit comments