assert: fix wrong message indentation · nodejs/node@014a2d1 · GitHub
Skip to content

Commit 014a2d1

Browse files
BridgeARMylesBorins
authored andcommitted
assert: fix wrong message indentation
If code is read from a file and that code is indented, it would be misaligned. This makes sure it has a natural indentation that is relative to the starting point of the assertion. PR-URL: #20791 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 3e7741c commit 014a2d1

2 files changed

Lines changed: 60 additions & 6 deletions

File tree

lib/assert.js

Lines changed: 13 additions & 0 deletions

test/parallel/test-assert.js

Lines changed: 47 additions & 6 deletions

0 commit comments

Comments
 (0)