Skip to content

Conversation

@JacksonTian
Copy link
Contributor

@JacksonTian JacksonTian commented Jan 30, 2017

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

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Jan 30, 2017
@mscdex
Copy link
Contributor

mscdex commented Jan 30, 2017

First line of the commit message is a tad too long. Perhaps use: 'test: use repeat() instead of new Array().join()' ?

Copy link
Contributor

@evanlucas evanlucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with Brian's nit fixed

The usage of `new Array(length + 1).join(str)` is strange.
Change to `str.repeat(length)` is more clearly.
@JacksonTian
Copy link
Contributor Author

Used the shorter commit message. Thanks all.

@JacksonTian JacksonTian changed the title test: use repeat() instead of the new Array().join() test: use repeat() instead of new Array().join() Jan 30, 2017
@Fishrock123
Copy link
Contributor

@italoacasas
Copy link

Landed 58dc229

@italoacasas italoacasas closed this Feb 2, 2017
italoacasas pushed a commit that referenced this pull request Feb 2, 2017
The usage of `new Array(length + 1).join(str)` is strange.
Change to `str.repeat(length)` is more clearly.

PR-URL: #11071
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
italoacasas pushed a commit that referenced this pull request Feb 3, 2017
The usage of `new Array(length + 1).join(str)` is strange.
Change to `str.repeat(length)` is more clearly.

PR-URL: #11071
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
italoacasas pushed a commit to italoacasas/node that referenced this pull request Feb 14, 2017
The usage of `new Array(length + 1).join(str)` is strange.
Change to `str.repeat(length)` is more clearly.

PR-URL: nodejs#11071
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
Reviewed-By: Italo A. Casas <[email protected]>
@jasnell
Copy link
Member

jasnell commented Mar 7, 2017

will require a backport PR to land on v6 or v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.