Skip to content

Conversation

@oygen87
Copy link
Contributor

change var to const

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

change var to const
@nodejs-github-botnodejs-github-bot added the tls Issues and PRs related to the tls subsystem. label Aug 9, 2018
@Trott
Copy link
Member

Trott commented Aug 9, 2018

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 9, 2018
Copy link
Contributor

@sagirksagirk left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

@devsnekdevsnek changed the title refactortls: refactor variable declarationsAug 12, 2018
varparts=s.split('\n');
constout=Object.create(null);
constparts=s.split('\n');
for(vari=0,len=parts.length;i<len;i++){
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we replace the for loop by a for-of loop?

Copy link
Member

Choose a reason for hiding this comment

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

Using the traditional for loop is still significantly faster than for-of and is fairly idiomatic still within Node.js core js.

jasnell pushed a commit that referenced this pull request Aug 12, 2018
PR-URL: #22219 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jon Moss <[email protected]>
@jasnell
Copy link
Member

Landed in 74d3363

@jasnelljasnell closed this Aug 12, 2018
@rvaggrvagg mentioned this pull request Aug 13, 2018
rvagg pushed a commit that referenced this pull request Aug 13, 2018
PR-URL: #22219 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jon Moss <[email protected]>
firass111 pushed a commit to firass111/Project_node1 that referenced this pull request Apr 16, 2025
PR-URL: nodejs/node#22219 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jon Moss <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@oygen87@Trott@jasnell@addaleax@cjihrig@sagirk@maclover7@devsnek@aduh95@trivikr@nodejs-github-bot