Skip to content

Commit 8a7c26f

Browse files
committed
fixup: create using declarations
Signed-off-by: Daeyeon Jeong [email protected]
1 parent be8fbda commit 8a7c26f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/stream_wrap.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ using v8::EscapableHandleScope;
4444
using v8::FunctionCallbackInfo;
4545
using v8::FunctionTemplate;
4646
using v8::HandleScope;
47+
using v8::JustVoid;
4748
using v8::Local;
49+
using v8::Maybe;
4850
using v8::MaybeLocal;
51+
using v8::Nothing;
4952
using v8::Object;
5053
using v8::PropertyAttribute;
5154
using v8::ReadOnly;
@@ -239,7 +242,7 @@ static MaybeLocal<Object> AcceptHandle(Environment* env,
239242
return scope.Escape(wrap_obj);
240243
}
241244

242-
v8::Maybe<void> LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) {
245+
Maybe<void> LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) {
243246
HandleScope scope(env()->isolate());
244247
Context::Scope context_scope(env()->context());
245248
uv_handle_type type = UV_UNKNOWN_HANDLE;
@@ -271,12 +274,12 @@ v8::Maybe<void> LibuvStreamWrap::OnUvRead(ssize_t nread, const uv_buf_t* buf) {
271274
object()->Set(env()->context(),
272275
env()->pending_handle_string(),
273276
local_pending_obj).IsNothing()) {
274-
return v8::Nothing<void>();
277+
return Nothing<void>();
275278
}
276279
}
277280

278281
EmitRead(nread, *buf);
279-
return v8::JustVoid();
282+
return JustVoid();
280283
}
281284

282285
void LibuvStreamWrap::GetWriteQueueSize(

0 commit comments

Comments
 (0)