summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-03-01 00:46:43 +0300
committerRod Vagg <rod@vagg.org>2015-02-28 16:50:36 -0600
commit2b47fd2eb615511ee1f2f29d496cd817e54740e1 (patch)
tree073309b433d3b26f1078ce1b4337d32f24359a98 /src/stream_wrap.cc
parentc9151547bcc61bd528810a5f294b180ac30c2e45 (diff)
downloadandroid-node-v8-2b47fd2eb615511ee1f2f29d496cd817e54740e1.tar.gz
android-node-v8-2b47fd2eb615511ee1f2f29d496cd817e54740e1.tar.bz2
android-node-v8-2b47fd2eb615511ee1f2f29d496cd817e54740e1.zip
stream_base: `.writev()` has limited support
Only TCP and JSStream do support `.writev()` on all platforms at the moment. Ensure that it won't be enabled everywhere. Fix: https://github.com/iojs/io.js/issues/995 PR-URL: https://github.com/iojs/io.js/pull/1008 Reviewed-by: Bert Belder <bertbelder@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 824a880ebd..8f6fcac85d 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -81,9 +81,10 @@ StreamWrap::StreamWrap(Environment* env,
void StreamWrap::AddMethods(Environment* env,
- v8::Handle<v8::FunctionTemplate> target) {
+ v8::Handle<v8::FunctionTemplate> target,
+ int flags) {
env->SetProtoMethod(target, "setBlocking", SetBlocking);
- StreamBase::AddMethods<StreamWrap>(env, target);
+ StreamBase::AddMethods<StreamWrap>(env, target, flags);
}