src: don't call v8::Object::SetHiddenValue()
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 9 Aug 2013 20:35:54 +0000 (22:35 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 9 Aug 2013 06:16:58 +0000 (08:16 +0200)
commitf9b7714b4b3f04cba10c4d8b32dad48a68988799
tree23c8183f7ca55214e651ff252ef50abfc80bced4
parentf548433195ba08e77ba93640382f474c17a13ecf
src: don't call v8::Object::SetHiddenValue()

Don't use v8::Object::SetHiddenValue() to keep a reference alive to the
buffer, we can just as easily do that from JS land and it's a lot faster
to boot.

Because the buffer is now a visible property of the write request
object, it's essential that we do *not* log it - we'd be effectively
serializing the whole buffer to a pretty-printed string.
lib/dgram.js
lib/net.js
src/stream_wrap.cc
src/udp_wrap.cc