diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-03-06 06:25:28 +0100 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-03-06 17:58:37 -0500 |
commit | 9f7c9811e2978a1c95392f5a175f12853abda5d6 (patch) | |
tree | 41bd8bfc9a012249a9325ed7ae4d5eaac980925a /src/stream_wrap.cc | |
parent | 71f069772e3da00fb2b1707041f3ab348a7c3776 (diff) | |
download | android-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.cc | 1 |
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. |