diff options
Diffstat (limited to 'src/js_stream.cc')
-rw-r--r-- | src/js_stream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js_stream.cc b/src/js_stream.cc index ddde2a5948f..d29e748da8d 100644 --- a/src/js_stream.cc +++ b/src/js_stream.cc @@ -120,7 +120,7 @@ int JSStream::DoWrite(WriteWrap* w, Local<Object> buf; for (size_t i = 0; i < count; i++) { buf = Buffer::Copy(env(), bufs[i].base, bufs[i].len).ToLocalChecked(); - bufs_arr->Set(env()->context(), i, buf).FromJust(); + bufs_arr->Set(env()->context(), i, buf).Check(); } Local<Value> argv[] = { @@ -216,7 +216,7 @@ void JSStream::Initialize(Local<Object> target, StreamBase::AddMethods(env, t); target->Set(env->context(), jsStreamString, - t->GetFunction(context).ToLocalChecked()).FromJust(); + t->GetFunction(context).ToLocalChecked()).Check(); } } // namespace node |