assert: use a set instead of an array for faster lookup · nodejs/node@5f77348 · GitHub
Skip to content

Commit 5f77348

Browse files
BridgeARaduh95
authored andcommitted
assert: use a set instead of an array for faster lookup
This is a very small improvement for error creation. PR-URL: #61076 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 22e156e commit 5f77348

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/internal/assert/assertion_error.js

Lines changed: 7 additions & 3 deletions

0 commit comments

Comments
 (0)