diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 0a3ba2cef6..6eb6763d0b 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -92,8 +92,9 @@ void StreamWrap::GetFD(Local, const PropertyCallbackInfo& args) { void StreamWrap::UpdateWriteQueueSize() { HandleScope scope(node_isolate); - object()->Set(write_queue_size_sym, - Integer::New(stream()->write_queue_size, node_isolate)); + Local write_queue_size = + Integer::NewFromUnsigned(stream()->write_queue_size, node_isolate); + object()->Set(write_queue_size_sym, write_queue_size); }