stream_wrap: use v8::Integer::NewFromUnsigned()
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 10 Aug 2013 21:25:38 +0000 (23:25 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 10 Aug 2013 22:11:28 +0000 (00:11 +0200)
commit2b5b37a3abdff5a2e02207ab1a68b8b462331563
tree3048a80f74bd6998cb5f3369af842daf9dfd0d2b
parenta20d565d9c4be6ab8397cf3a9546c39a247c7aca
stream_wrap: use v8::Integer::NewFromUnsigned()

Use v8::Integer::NewFromUnsigned() when updating the writeQueueSize
field.

Before this commit, it used v8::Integer::New() but that takes an
int32_t. It's unlikely for a write queue to grow beyond 2**31-1 bytes
but let's use the unsigned integer constructor anyway, just in case.
src/stream_wrap.cc