Uh oh!
There was an error while loading. Please reload this page.
buffer: expose underlying buffer object always - #8311
Conversation
If the Buffer object's length is zero, or equal to the underlying buffer object's length, `parent` property returns `undefined`. > new Buffer(0).parent undefined > new Buffer(Buffer.poolSize).parent undefined This patch makes the buffer objects to consistently expose the buffer object via the `parent` property, always. Fixes: nodejs#8266
trevnorris
commented
Aug 28, 2016
LGTM. Though can we also move to deprecate |
addaleax
commented
Aug 29, 2016
LGTM … what do you think on the semver-ness of this? It doesn’t seem like something that would reasonably break anybody’s code, but it does involve having to change the existing tests. CI: https://ci.nodejs.org/job/node-test-commit/4812/ |
addaleax
commented
Aug 29, 2016
CI looks okay, for CITGM… @thealphanerd are those known failures? (Also… so many |
jasnell
commented
Aug 29, 2016
+1 to a runtime deprecation on |
jasnell
commented
Aug 29, 2016
LGTM |
addaleax
commented
Sep 5, 2016
@thefourtheye This is good to go, right? :) |
thefourtheye
commented
Sep 6, 2016
@addaleax I would say so, as I have seen the vinyl-fs failure in few other runs as well. I thought it would be better if @thealphanerd or @phated could give GO/NO-GO here. |
phated
commented
Sep 6, 2016
Pretty sure these are permission problems and the citgm needs to be fixed. |
jasnell
commented
Sep 7, 2016
+1 to getting this landed :-) |
addaleax
commented
Sep 8, 2016
Landed in c21458a |
If the Buffer object's length is zero, or equal to the underlying buffer object's length, `parent` property returns `undefined`. > new Buffer(0).parent undefined > new Buffer(Buffer.poolSize).parent undefined This patch makes the buffer objects to consistently expose the buffer object via the `parent` property, always. Fixes: #8266 PR-URL: #8311 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123
commented
Sep 13, 2016
Getting this trying to land on v6-staging: |
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
buffer
Description of change
If the Buffer object's length is zero, or equal to the underlying
buffer object's length,
parentproperty returnsundefined.This patch makes the buffer objects to consistently expose the buffer
object via the
parentproperty, always.Fixes: #8266
cc @nodejs/buffer