Skip to content

Conversation

ronag
Copy link
Member

@ronag ronag commented Feb 10, 2023

data doesn't have a length propery if it's not a Buffer but is a typed array.

@ronag ronag added the http Issues or PRs related to the http subsystem. label Feb 10, 2023
@ronag ronag requested a review from mcollina February 10, 2023 10:03
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Feb 10, 2023

OutgoingMessage.prototype._writeRaw = _writeRaw;
function _writeRaw(data, encoding, callback) {
function _writeRaw(data, encoding, callback, size) {
Copy link
Member Author

Choose a reason for hiding this comment

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

size comes from #46601

data doesn't have a length propery if it's not a Buffer but is
a typed array.
@aduh95
Copy link
Contributor

aduh95 commented Feb 10, 2023

data doesn't have a length property if it's not a Buffer but is a typed array.

TypedArrays have a length getter though: https://tc39.es/ecma262/#sec-get-%typedarray%.prototype.length

@ronag ronag closed this Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants