Fixes simple/test-tcp-wrap-listen.js
int r = uv_pipe_init(&handle_);
assert(r == 0); // How do we proxy this error up to javascript?
// Suggestion: uv_pipe_init() returns void.
+ UpdateWriteQueueSize();
}
static Handle<Value> Bind(const Arguments& args) {
: HandleWrap(object, (uv_handle_t*)stream) {
stream_ = stream;
stream->data = this;
-
- UpdateWriteQueueSize();
}
void StreamWrap::UpdateWriteQueueSize() {
+ HandleScope scope;
object_->Set(write_queue_size_sym, Integer::New(stream_->write_queue_size));
}
StreamWrap(v8::Handle<v8::Object> object, uv_stream_t* stream);
virtual ~StreamWrap() { }
void StateChange() { }
+ void UpdateWriteQueueSize();
private:
- void UpdateWriteQueueSize();
static inline char* NewSlab(v8::Handle<v8::Object> global, v8::Handle<v8::Object> wrap_obj);
// Callbacks for libuv
int r = uv_tcp_init(&handle_);
assert(r == 0); // How do we proxy this error up to javascript?
// Suggestion: uv_tcp_init() returns void.
+ UpdateWriteQueueSize();
}
~TCPWrap() {