Commit 76c9ab5
assert: allow circular references
assert.deepEqual() and assert.deepStrictEqual() will no longer throw a
RangeError if passed objects with circular references.
PR-URL: #6432
Fixes: #6416
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent b3f75ec commit 76c9ab5Copy full SHA for 76c9ab5
File tree
Expand file treeCollapse file tree
2 files changed
+37
-16
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+37
-16
lines changedOpen diff view settings
Collapse file
+17-4Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
143 | 143 | |
144 | 144 | |
145 | 145 | |
146 | | - |
| 146 | + |
147 | 147 | |
148 | 148 | |
149 | 149 | |
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
194 | | - |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
195 | 207 | |
196 | 208 | |
197 | 209 | |
198 | 210 | |
199 | 211 | |
200 | 212 | |
201 | 213 | |
202 | | - |
| 214 | + |
203 | 215 | |
204 | 216 | |
205 | 217 | |
| ||
235 | 247 | |
236 | 248 | |
237 | 249 | |
238 | | - |
| 250 | + |
| 251 | + |
239 | 252 | |
240 | 253 | |
241 | 254 | |
|
Collapse file
test/parallel/test-assert.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert.js+20-12Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
381 | 381 | |
382 | 382 | |
383 | 383 | |
384 | | - |
385 | | - |
386 | | - |
| 384 | + |
| 385 | + |
| 386 | + |
| 387 | + |
| 388 | + |
387 | 389 | |
388 | | - |
389 | | - |
| 390 | + |
| 391 | + |
390 | 392 | |
391 | | - |
392 | | - |
393 | | - |
394 | | - |
395 | | - |
396 | | - |
| 393 | + |
| 394 | + |
397 | 395 | |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
398 | 407 | |
399 | 408 | |
400 | 409 | |
401 | 410 | |
402 | | - |
403 | 411 | |
404 | 412 | |
405 | 413 | |
|
0 commit comments