Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptls: refactor variable declarations #22219
Conversation
nodejs-github-bot
added
the
tls
label
Aug 9, 2018
addaleax
approved these changes
Aug 9, 2018
This comment has been minimized.
This comment has been minimized.
jasnell
approved these changes
Aug 9, 2018
Trott
added
the
author ready
label
Aug 9, 2018
cjihrig
approved these changes
Aug 9, 2018
trivikr
approved these changes
Aug 12, 2018
devsnek
changed the title
refactor
tls: refactor variable declarations
Aug 12, 2018
devsnek
approved these changes
Aug 12, 2018
aduh95
reviewed
Aug 12, 2018
| var out = Object.create(null); | ||
| var parts = s.split('\n'); | ||
| const out = Object.create(null); | ||
| const parts = s.split('\n'); | ||
| for (var i = 0, len = parts.length; i < len; i++) { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jasnell
Aug 12, 2018
Member
Using the traditional for loop is still significantly faster than for-of and is fairly idiomatic still within Node.js core js.
maclover7
approved these changes
Aug 12, 2018
jasnell
added a commit
that referenced
this pull request
Aug 12, 2018
This comment has been minimized.
This comment has been minimized.
|
Landed in 74d3363 |
jasnell
closed this
Aug 12, 2018
rvagg
added a commit
that referenced
this pull request
Aug 13, 2018
rvagg
added a commit
that referenced
this pull request
Aug 13, 2018
This was referenced Aug 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
oygen87 commentedAug 9, 2018
change var to const
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes