summaryrefslogtreecommitdiff
path: root/src/stream_base-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_base-inl.h')
-rw-r--r--src/stream_base-inl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stream_base-inl.h b/src/stream_base-inl.h
index b7495a80ac..f0d522a7b0 100644
--- a/src/stream_base-inl.h
+++ b/src/stream_base-inl.h
@@ -136,6 +136,13 @@ inline void StreamResource::EmitAfterShutdown(ShutdownWrap* w, int status) {
listener_->OnStreamAfterShutdown(w, status);
}
+inline void StreamResource::EmitWantsWrite(size_t suggested_size) {
+#ifdef DEBUG
+ v8::SealHandleScope handle_scope(v8::Isolate::GetCurrent());
+#endif
+ listener_->OnStreamWantsWrite(suggested_size);
+}
+
inline StreamBase::StreamBase(Environment* env) : env_(env) {
PushStreamListener(&default_listener_);
}