From 9f7c9811e2978a1c95392f5a175f12853abda5d6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 6 Mar 2015 06:25:28 +0100 Subject: [PATCH] src: add missing Context::Scope Add a Context::Scope that was overlooked in commit 583a868 ("stream_wrap: add HandleScope's in uv callbacks"). PR-URL: https://github.com/iojs/io.js/pull/1084 Reviewed-By: Fedor Indutny --- src/stream_wrap.cc | 1 + 1 file changed, 1 insertion(+) 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.