summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-06-25 18:46:33 +0200
committerAnna Henningsen <anna@addaleax.net>2018-06-30 15:52:54 +0200
commit64a3fadf7192485197b9695b7bb2165c7e7d762d (patch)
treec226390642b88585eebcb38899e7afb1f2fda75c /src/stream_wrap.cc
parenta078521a6a9cede03208216d58d5af13e8406cbe (diff)
downloadandroid-node-v8-64a3fadf7192485197b9695b7bb2165c7e7d762d.tar.gz
android-node-v8-64a3fadf7192485197b9695b7bb2165c7e7d762d.tar.bz2
android-node-v8-64a3fadf7192485197b9695b7bb2165c7e7d762d.zip
src: remove StreamBase::kFlagHasWritev
Since libuv 1.21.0, pipes on Windows support `writev` on the libuv side. This allows for some simplification, and makes the `StreamBase` API more uniform (multi-buffer `Write()` is always supported now, including when used by other non-JS consumers like HTTP/2). PR-URL: https://github.com/nodejs/node/pull/21527 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index ddeb74d809..2dea245fd1 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -97,8 +97,7 @@ LibuvStreamWrap::LibuvStreamWrap(Environment* env,
void LibuvStreamWrap::AddMethods(Environment* env,
- v8::Local<v8::FunctionTemplate> target,
- int flags) {
+ v8::Local<v8::FunctionTemplate> target) {
Local<FunctionTemplate> get_write_queue_size =
FunctionTemplate::New(env->isolate(),
GetWriteQueueSize,
@@ -110,7 +109,7 @@ void LibuvStreamWrap::AddMethods(Environment* env,
Local<FunctionTemplate>(),
static_cast<PropertyAttribute>(ReadOnly | DontDelete));
env->SetProtoMethod(target, "setBlocking", SetBlocking);
- StreamBase::AddMethods<LibuvStreamWrap>(env, target, flags);
+ StreamBase::AddMethods<LibuvStreamWrap>(env, target);
}