assert: fix error diff · nodejs/node@8217441 · GitHub
Skip to content

Commit 8217441

Browse files
committed
assert: fix error diff
In some edge cases an identical line could be printed twice. This is now fixed by changing the algorithm a bit. It will now verify how many lines were identical before the current one. PR-URL: #28058 Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 1ee7ce6 commit 8217441

2 files changed

Lines changed: 49 additions & 44 deletions

File tree

lib/internal/assert/assertion_error.js

Lines changed: 28 additions & 38 deletions

test/parallel/test-assert-deep.js

Lines changed: 21 additions & 6 deletions

0 commit comments

Comments
 (0)