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

Commit e61cfdb

Browse files
BridgeARRafaelGSS
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 4ef4f75 commit e61cfdb

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)