Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign uphttp2: use getter replace use directly _witableState.finished #28007
Conversation
nodejs-github-bot
added
http2
stream
labels
Jun 1, 2019
Himself65
suggested changes
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
|
It's worth noting that Duplex already has some getters for _writableState. Does this need to be moved to writable.prototype? I'm also looking for a way to proxy all _writableState properties at once, without losing readability and conciseness. |
This comment has been minimized.
This comment has been minimized.
They are also on Lines 42 to 46 in 187b056 non enumerable properties are skipped, so we have to redefine them. |
This comment has been minimized.
This comment has been minimized.
|
@zero1five I think this PR should be split in two logical changes/commits:
What do you think? |
This comment has been minimized.
This comment has been minimized.
|
@lpinca Ok, I feel good. i will update this PR later to update this section with relevant tests. And then see what else is being used. (a little curiosity |
This comment has been minimized.
This comment has been minimized.
|
@zero1five I'm not sure, I think that with a little care we can use |
zero1five
force-pushed the
zero1five:refactor/replace-finished
branch
from
868f2f1
to
6ce51da
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
|
Hmmm...
Because this PR is mainly to modify http2, so other changes should be modified in the new PR. |
lpinca
approved these changes
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
|
LGTM but can you please move the http2 change to a separate commit? Thank you. |
zero1five
force-pushed the
zero1five:refactor/replace-finished
branch
from
6ce51da
to
cdb22c4
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
|
@lpinca |
This comment has been minimized.
This comment has been minimized.
|
LGTM |
BridgeAR
reviewed
Jun 4, 2019
|
This needs some documentation. Otherwise it's LGTM. |
BridgeAR
added
the
semver-minor
label
Jun 4, 2019
zero1five
force-pushed the
zero1five:refactor/replace-finished
branch
2 times, most recently
from
d54a111
to
de53445
Jun 11, 2019
This comment has been minimized.
This comment has been minimized.
|
@BridgeAR Added the doc, PTAL. |
jasnell
requested a review
from mcollina
Jun 14, 2019
jasnell
approved these changes
Jun 14, 2019
mcollina
reviewed
Jun 14, 2019
|
Good work! I’ve just added a nit on the doc! |
doc/api/stream.md Outdated
zero1five
force-pushed the
zero1five:refactor/replace-finished
branch
3 times, most recently
from
f1d35d4
to
12622a5
Jun 14, 2019
This comment has been minimized.
This comment has been minimized.
|
Can someone please trigger a CI build? |
addaleax
approved these changes
Jun 19, 2019
addaleax
added
the
author ready
label
Jun 19, 2019
This comment has been minimized.
This comment has been minimized.
Trott
approved these changes
Jun 21, 2019
This comment has been minimized.
This comment has been minimized.
|
Windows-fanned has one use case that fails, |
zero1five
added some commits
Jun 1, 2019
zero1five
force-pushed the
zero1five:refactor/replace-finished
branch
from
284f714
to
2c66f6c
Jun 24, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Windows re-build: https://ci.nodejs.org/job/node-test-commit-windows-fanned/28330/ |
This comment has been minimized.
This comment has been minimized.
|
Landed in 2bb93e1...f11a4ec |
zero1five commentedJun 1, 2019
add a new getter to duplex stream to replace the property
this .writableState.finishedof the object that inherited duplex.Refs: #445
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes