src: refactor setting JS properties on WriteWrap · nodejs/node@08b83ee · GitHub
Skip to content

Commit 08b83ee

Browse files
committed
src: refactor setting JS properties on WriteWrap
`async` and `bytes` are only interesting when the write is coming from JS, and unnecessary otherwise. Also, make all of the stream `Write*()` bindings use the same code for setting these, and upgrade to the non-deprecated versions. PR-URL: #18963 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 8d595bb commit 08b83ee

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

src/stream_base-inl.h

Lines changed: 0 additions & 2 deletions

src/stream_base.cc

Lines changed: 18 additions & 8 deletions

0 commit comments

Comments
 (0)