benchmark,lib: var to const
This came up recently again. I just ran a modified eslint rule against lib and benchmark and I have no strong opinion about actually doing this and I am absolutely fine with closing this again. It's just there to resolve a comment in the referenced PR.
Note: I did not update any eslint rules as there is no explicit rule to do this. Instead, I just modified the prefer-const
rule to match against var
instead of let
.
Refs: https://github.com/nodejs/node/pull/26679
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines