Skip to content

Conversation

@JacksonTian
Copy link
Contributor

use String.prototype.repeat() to simplify code, less code, more
semantically.

@JacksonTian
Copy link
ContributorAuthor

like #5311 .

@mscdex
Copy link
Contributor

@mscdexmscdex added test Issues and PRs related to the tests. benchmark Issues and PRs related to the benchmark subsystem. lib / src Issues and PRs related to general changes in the lib or src directory. labels Feb 22, 2016
@mscdex
Copy link
Contributor

Linter failed:

/usr/home/iojs/build/workspace/node-test-linter/test/parallel/test-buffer.js 684:7 error 's' is never modified, use 'const' instead prefer-const 

@mscdex
Copy link
Contributor

Also this test is failing on all platforms:

not ok 170 test-debugger-util-regression.js # # assert.js:89 # throw new assert.AssertionError({# ^ # AssertionError: the program should not hang # at Object.exports.fail (/home/iojs/build/workspace/node-test-commit-linux/nodes/centos5-32/test/common.js:453:10) # at fail [as _onTimeout] (/home/iojs/build/workspace/node-test-commit-linux/nodes/centos5-32/test/parallel/test-debugger-util-regression.js:23:10) # at Timer.listOnTimeout (timers.js:92:15) 

@JacksonTianJacksonTianforce-pushed the repeat branch 2 times, most recently from 00753aa to 34c6b03CompareFebruary 22, 2016 09:09
@JacksonTian
Copy link
ContributorAuthor

Hi @mscdex , I updated the PR.

@mscdex
Copy link
Contributor

@mscdex
Copy link
Contributor

CI is all green

@targos
Copy link
Member

LGTM

use String.prototype.repeat() to simplify code, less code, more semantically.
@JacksonTian
Copy link
ContributorAuthor

Rebased with master.

@jasnell
Copy link
Member

LGTM

jasnell pushed a commit that referenced this pull request Mar 21, 2016
use String.prototype.repeat() to simplify code, less code, more semantically. PR-URL: #5359 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
@jasnell
Copy link
Member

Landed in 4d78121

@jasnelljasnell closed this Mar 21, 2016
@JacksonTianJacksonTian deleted the repeat branch March 22, 2016 02:24
@Trott
Copy link
Member

@jasnell Landing this has broken make test because the linter is failing. CI was last run on this more than 4 weeks ago and some rules have been tightened since then. :-(

@TrottTrott mentioned this pull request Mar 22, 2016
4 tasks
@Trott
Copy link
Member

I'll put together a fix unless someone beats me to it.

@JacksonTian
Copy link
ContributorAuthor

I am sorry, Let me fix it. @Trott .

@Trott
Copy link
Member

I already opened #5840, but thanks!

@Trott
Copy link
Member

(And no worries, this isn't the first time this sort of thing has happened, the problem is our process not anything you did wrong.)

@jasnell
Copy link
Member

Yep, not your fault at all @JacksonTian ... I'm the one who missed the step. I saw the green CI without checking the date and forgot to run make lint locally before I pushed. It happens, unfortunately.

@Trott
Copy link
Member

Yeah, we've got a lot of opportunities for automation, for sure.

@Fishrock123Fishrock123 mentioned this pull request Mar 22, 2016
Fishrock123 pushed a commit that referenced this pull request Mar 22, 2016
use String.prototype.repeat() to simplify code, less code, more semantically. PR-URL: #5359 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
@MylesBorins
Copy link
Contributor

I've manually added the linting changes while backporting. @Trott I've marked your linting PR as don't land on v4

MylesBorins pushed a commit that referenced this pull request Mar 30, 2016
use String.prototype.repeat() to simplify code, less code, more semantically. PR-URL: #5359 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 30, 2016
use String.prototype.repeat() to simplify code, less code, more semantically. PR-URL: #5359 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarkIssues and PRs related to the benchmark subsystem.lib / srcIssues and PRs related to general changes in the lib or src directory.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@JacksonTian@mscdex@targos@jasnell@Trott@MylesBorins