Uh oh!
There was an error while loading. Please reload this page.
named anonymous functions in readline & zlib.js - #21792
Conversation
apapirovski
left a comment
There was a problem hiding this comment.
Hi @antsmartian, the goal of naming these functions should be to make a more useful name than the anonymous one. Please try to consider the use cases for these functions and name based on that. In particular this applies to fnWrap.
antsmartian
commented
Jul 13, 2018
Yeah sure. Will do the same and update. |
antsmartian
commented
Jul 13, 2018
@apapirovski Ok, I did skimmed the source code of For |
31d0635 to
6e0e792CompareThere was a problem hiding this comment.
So we could actually do a slightly better thing here. Instead of the IIFE, we could use an arrow function and replace self with this — unless I'm missing something. Then we will just have a normal event callback instead of this weird thing it is right now. Feel free to either do that change here or in a separate PR.
There was a problem hiding this comment.
Yes that make sense, may be will update the same in another PR. Thanks for your time on this.
trivikr
commented
Jul 16, 2018
Thank you @antsmartian for your first PR in Node.js core! The |
6e0e792 to
d8ec3d9Compareantsmartian
commented
Jul 16, 2018
@trivikr Thanks, for some reason, my git config wasn't correct. Now fixed. |
trivikr
commented
Jul 18, 2018
apapirovski
commented
Jul 29, 2018
maclover7
commented
Jul 30, 2018
maclover7
commented
Aug 2, 2018
Resumed once again, infrastructure issue on OSX: https://ci.nodejs.org/job/node-test-pull-request/16141/ |
trivikr
commented
Aug 2, 2018
Landed in fc6f49a |
PR-URL: #21792 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
PR-URL: #21792 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes