Skip to content

Commit 9f7c981

Browse files
bnoordhuisindutny
authored andcommittedMar 6, 2015
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: #1084 Reviewed-By: Fedor Indutny <[email protected]>
1 parent 71f0697 commit 9f7c981

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/stream_wrap.cc

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle,
233233
uv_handle_type pending) {
234234
StreamWrap* wrap = static_cast<StreamWrap*>(handle->data);
235235
HandleScope scope(wrap->env()->isolate());
236+
Context::Scope context_scope(wrap->env()->context());
236237

237238
// We should not be getting this callback if someone as already called
238239
// uv_close() on the handle.

0 commit comments

Comments
 (0)