diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 2deae209fd64df..be5757d4a60bd1 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -233,6 +233,7 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle, uv_handle_type pending) { StreamWrap* wrap = static_cast(handle->data); HandleScope scope(wrap->env()->isolate()); + Context::Scope context_scope(wrap->env()->context()); // We should not be getting this callback if someone as already called // uv_close() on the handle.