Skip to content

Commit

Permalink
src: add missing Context::Scope
Browse files Browse the repository at this point in the history
Add a Context::Scope that was overlooked in commit 583a868
("stream_wrap: add HandleScope's in uv callbacks").

PR-URL: nodejs#1084
Reviewed-By: Fedor Indutny <[email protected]>
  • Loading branch information
bnoordhuis authored and indutny committed Mar 6, 2015
1 parent 71f0697 commit 9f7c981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stream_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9f7c981

Please sign in to comment.