summaryrefslogtreecommitdiff
path: root/src/stream_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-18 23:18:50 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-20 12:09:29 +0200
commitca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0 (patch)
treeb9415d0e2f6005a651276cbc40d23196a8c02ddf /src/stream_wrap.h
parent0161ec87af3d71b10d8ce679c8a1a64358fae8dc (diff)
downloadnode-new-ca9eb718fbf2cd2c60c7aeb3ca33413e17fcbbf0.tar.gz
src, lib: update after internal api change
Libuv now returns errors directly. Make everything in src/ and lib/ follow suit. The changes to lib/ are not strictly necessary but they remove the need for the abominations that are process._errno and node::SetErrno().
Diffstat (limited to 'src/stream_wrap.h')
-rw-r--r--src/stream_wrap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream_wrap.h b/src/stream_wrap.h
index 6ef20d364b..0a431c1486 100644
--- a/src/stream_wrap.h
+++ b/src/stream_wrap.h
@@ -37,7 +37,8 @@ typedef class ReqWrap<uv_shutdown_t> ShutdownWrap;
class WriteWrap: public ReqWrap<uv_write_t> {
public:
- explicit WriteWrap(StreamWrap* wrap) {
+ explicit WriteWrap(v8::Local<v8::Object> obj, StreamWrap* wrap)
+ : ReqWrap<uv_write_t>(obj) {
wrap_ = wrap;
}