diff options
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r-- | src/stream_wrap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index a9f942150b2..1ec8386fbbb 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -89,7 +89,7 @@ void LibuvStreamWrap::Initialize(Local<Object> target, target->Set(env->context(), wrapString, - sw->GetFunction(env->context()).ToLocalChecked()).FromJust(); + sw->GetFunction(env->context()).ToLocalChecked()).Check(); env->set_shutdown_wrap_template(sw->InstanceTemplate()); Local<FunctionTemplate> ww = @@ -101,7 +101,7 @@ void LibuvStreamWrap::Initialize(Local<Object> target, ww->Inherit(AsyncWrap::GetConstructorTemplate(env)); target->Set(env->context(), writeWrapString, - ww->GetFunction(env->context()).ToLocalChecked()).FromJust(); + ww->GetFunction(env->context()).ToLocalChecked()).Check(); env->set_write_wrap_template(ww->InstanceTemplate()); NODE_DEFINE_CONSTANT(target, kReadBytesOrError); @@ -109,7 +109,7 @@ void LibuvStreamWrap::Initialize(Local<Object> target, NODE_DEFINE_CONSTANT(target, kBytesWritten); NODE_DEFINE_CONSTANT(target, kLastWriteWasAsync); target->Set(context, FIXED_ONE_BYTE_STRING(env->isolate(), "streamBaseState"), - env->stream_base_state().GetJSArray()).FromJust(); + env->stream_base_state().GetJSArray()).Check(); } @@ -274,7 +274,7 @@ void LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) { ->Set(env()->context(), env()->pending_handle_string(), pending_obj.ToLocalChecked()) - .FromJust(); + .Check(); } } |