summaryrefslogtreecommitdiff
path: root/src/stream_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-03-06 06:25:28 +0100
committerFedor Indutny <fedor@indutny.com>2015-03-06 17:58:37 -0500
commit9f7c9811e2978a1c95392f5a175f12853abda5d6 (patch)
tree41bd8bfc9a012249a9325ed7ae4d5eaac980925a /src/stream_wrap.cc
parent71f069772e3da00fb2b1707041f3ab348a7c3776 (diff)
downloadandroid-node-v8-9f7c9811e2978a1c95392f5a175f12853abda5d6.tar.gz
android-node-v8-9f7c9811e2978a1c95392f5a175f12853abda5d6.tar.bz2
android-node-v8-9f7c9811e2978a1c95392f5a175f12853abda5d6.zip
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 <fedor@indutny.com>
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index 2deae209fd..be5757d4a6 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<StreamWrap*>(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.