assert: use less read operations · nodejs/node@ec642f1 · GitHub
Skip to content

Commit ec642f1

Browse files
BridgeARtargos
authored andcommitted
assert: use less read operations
This reduces the total amount of reads when using `assert.ok()` with a falsy value. That increases the read performance significantly. Also remove a comment that can not be addressed. PR-URL: #27525 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 3367bad commit ec642f1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

lib/assert.js

Lines changed: 2 additions & 7 deletions

0 commit comments

Comments
 (0)