| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
I would say, calling toString explicitly would be clearer.
Sorry, something went wrong.
There was a problem hiding this comment.
I was following this line. Should I change it as well?
Sorry, something went wrong.
There was a problem hiding this comment.
yes
Sorry, something went wrong.
There was a problem hiding this comment.
console.log('%s', data)?
Sorry, something went wrong.
There was a problem hiding this comment.
@thefourtheye, @sam-github So which of these two variants should I apply?
Sorry, something went wrong.
There was a problem hiding this comment.
what two variants?
Sorry, something went wrong.
There was a problem hiding this comment.
Oh, I see. I think console.log('%s', data) is more idiomatic. Code using console.log() should use its facilities. console.log(data.toString()) just seems a cumbersome version. @thefourtheye, what do you think?
Sorry, something went wrong.
There was a problem hiding this comment.
Personally, I feel like data.toString() has clearer intent, but I'm good either way.
Sorry, something went wrong.
There was a problem hiding this comment.
So we have 3:1 (considering emoji) for data.toString().
Sorry, something went wrong.
There was a problem hiding this comment.
this is an fd leak, because the fd is never closed
Sorry, something went wrong.
There was a problem hiding this comment.
@thefourtheye, @sam-github I'm not sure how to fix this. It requires rewriting the previous paragraph. Maybe it could be fixed in a separate PR?
Sorry, something went wrong.
There was a problem hiding this comment.
+1 for another PR. The issue is already there, this is just altering indentation.
Sorry, something went wrong.
There was a problem hiding this comment.
ok by me
Sorry, something went wrong.
|
LGTM, despite the unexplained aversion to format strings :-) |
Sorry, something went wrong.
|
ping @nodejs/documentation |
Sorry, something went wrong.
|
LGTM also. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Please squash into one commit with a bullet list of changes, I would describe this as "doc: modernize child_process example code".
Sorry, something went wrong.
|
@sam-github I hope I've done it right... I don't know why the bot has added this dont-land-on-v7.x label after squashing, though. |
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: parent's
Sorry, something went wrong.
There was a problem hiding this comment.
@thefourtheye Fixed
Sorry, something went wrong.
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo.
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: nodejs#10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: #10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: nodejs#10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: nodejs#10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: #10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: nodejs#10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: nodejs#10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1. equal => strictEqual. 2. let => const for the variable that is not reassigned. 3. fix spaces. 4. stringify erroneous raw buffer outputs. 5. fix a typo. PR-URL: #10102 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc, child_process
Description of change