repl: refactor to avoid unsafe array iteration
requested to merge github/fork/RaisinTen/lib/refactor-to-remove-for-of-loop-with-let-in-repl.js into master
This was the only for-let-of loop
in lib
so I'm trying to make it more consistent with the other for loop
s.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines