lib,doc: return boolean from child.send()#3516
Conversation
|
Seems fine to me, is this Major? I can't imagine anyone doing anything other than |
|
A more cautious alternative is #3518. While this one updates the code to conform to the documentation, that one updates the documentation to conform to the code. Which is the right path? |
|
semver-minor IMO |
lib/internal/child_process.js
Outdated
There was a problem hiding this comment.
128k queued messages is perhaps a bit much. Maybe return false when the length is > 1?
There was a problem hiding this comment.
Sure. If the threshold is 1, I should probably add a test for that if it's possible to induce it without a ton of load or anything.
The documentation indicates that child.send() returns a boolean but it has returned undefinined at least since io.js v1. It now returns a boolean per the (slightly updated) documentation.
|
I'd agree with semver-minor as @rvagg indicates (which, of course, takes it out of the v4.x queue) |
lib/internal/child_process.js
Outdated
There was a problem hiding this comment.
This is logically always false. :-)
|
LGTM |
|
I'll land this and close #3518 in about six hours unless there's an objection. |
The documentation indicates that child.send() returns a boolean but it has returned undefinined at since v0.12.0. It now returns a boolean per the (slightly updated) documentation. PR-URL: #3516 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
Landed in cdcf00a |
The documentation indicates that child.send() returns a boolean but it has returned undefinined at since v0.12.0. It now returns a boolean per the (slightly updated) documentation. PR-URL: nodejs#3516 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
@nodejs/lts should we consider including this in v4.5.0? |
The documentation indicates that child.send() returns a boolean but it has returned undefinined at since v0.12.0. It now returns a boolean per the (slightly updated) documentation. PR-URL: nodejs#3516 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
a soft -1 on LTS for this from me @thealphanerd |
The documentation indicates that child.send() returns a boolean but it
has returned
undefinedat least since io.js v1. This PR makes it so it returns aboolean per the (slightly updated) documentation.