New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tls: improve createSecureContext in _tls_common #8781
Conversation
Actually, |
@mscdex Thanks for this tip, and I have followed your suggestion and replace all |
The functional array methods are also slow unfortunately. What about just pulling the variable declaration out to the top of the function? |
a33e722
to
796613e
Compare
Done @mscdex :) |
LGTM if CI is ok with it: https://ci.nodejs.org/job/node-test-pull-request/4280/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- this shares the iterator variable `i` expictly. - this converts some var to const. PR-URL: nodejs#8781 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
796613e
to
86a6e57
Compare
- this shares the iterator variable `i` expictly. - this converts some var to const. PR-URL: #8781 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
CI is green and Landed in f4d7abf :) |
- this shares the iterator variable `i` expictly. - this converts some var to const. PR-URL: #8781 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
- this shares the iterator variable `i` expictly. - this converts some var to const. PR-URL: #8781 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
tls
Description of change
The createSecureContext function is using let in for loop, to keep coding
consistence inside that function, update to use let/const, too.