From a0d699940fda51c7af44a1a2a222949a1c89137d Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Sun, 26 Jun 2022 22:30:33 +0900 Subject: [PATCH] fixup: create using declarations Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com --- src/stream_wrap.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index a2c2a92008f2d4..6fe89f641e6a48 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -44,8 +44,11 @@ using v8::EscapableHandleScope; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::HandleScope; +using v8::JustVoid; using v8::Local; +using v8::Maybe; using v8::MaybeLocal; +using v8::Nothing; using v8::Object; using v8::PropertyAttribute; using v8::ReadOnly; @@ -239,7 +242,7 @@ static MaybeLocal AcceptHandle(Environment* env, return scope.Escape(wrap_obj); } -v8::Maybe LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) { +Maybe LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) { HandleScope scope(env()->isolate()); Context::Scope context_scope(env()->context()); uv_handle_type type = UV_UNKNOWN_HANDLE; @@ -271,12 +274,12 @@ v8::Maybe LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) { object()->Set(env()->context(), env()->pending_handle_string(), local_pending_obj).IsNothing()) { - return v8::Nothing(); + return Nothing(); } } EmitRead(nread, *buf); - return v8::JustVoid(); + return JustVoid(); } void LibuvStreamWrap::GetWriteQueueSize(