Skip to content

Conversation

@trevnorris
Copy link
Contributor

If bytesWritten is accessed before the object has been properly
constructed then return undefined.

Fixes: #3298

R=@bnoordhuis

CI: https://ci.nodejs.org/job/node-test-pull-request/470/

@trevnorristrevnorrisforce-pushed the fix-byteswritten-access branch from f0d0403 to 1a7bebeCompareOctober 9, 2015 22:53
@mscdexmscdex added the net Issues and PRs related to the net subsystem. label Oct 9, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd check that they're strictEqual to undefined. Apart from that LGTM.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good call.

If bytesWritten is accessed before the object has been properly constructed then return undefined. Fixes: nodejs#3298
@trevnorristrevnorrisforce-pushed the fix-byteswritten-access branch from 1a7bebe to dc6c9f4CompareOctober 12, 2015 14:28
trevnorris added a commit that referenced this pull request Oct 12, 2015
If bytesWritten is accessed before the object has been properly constructed then return undefined. Fixes: #3298 PR-URL: #3305 Reviewed-By: Ben Noordhuis <[email protected]>
@trevnorris
Copy link
ContributorAuthor

Thanks. Landed on a713024

@trevnorristrevnorris deleted the fix-byteswritten-access branch October 12, 2015 14:34
trevnorris added a commit that referenced this pull request Oct 12, 2015
If bytesWritten is accessed before the object has been properly constructed then return undefined. Fixes: #3298 PR-URL: #3305 Reviewed-By: Ben Noordhuis <[email protected]>
@trevnorris
Copy link
ContributorAuthor

landed in v4.x-staging in 01cb3fc.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

netIssues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@trevnorris@bnoordhuis@mscdex@MylesBorins