Skip to content

test: use repeat() instead of new Array().join()

Rodrigo Muino Tomonari requested to merge github/fork/JacksonTian/repeat into master

The usage of new Array(length + 1).join(str) is strange. Change to str.repeat(length) is more clearly.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading