Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

pipe_wrap: use Instantiate() method

Retrieve a new client object via PipeWrap::Instantiate(). This method
performs appropriate checks to make sure everything is as it should be.
  • Loading branch information...
commit b84ebfe8860edfb83bff945c30d41e2d9c32dfca 1 parent 7b9771f
@trevnorris trevnorris authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/
3  src/
@@ -206,8 +206,7 @@ void PipeWrap::OnConnection(uv_stream_t* handle, int status) {
// Instanciate the client javascript object and handle.
- Local<Object> client_obj =
- env->pipe_constructor_template()->GetFunction()->NewInstance();
+ Local<Object> client_obj = Instantiate(env);
// Unwrap the client javascript object.
PipeWrap* wrap = Unwrap<PipeWrap>(client_obj);
Please sign in to comment.
Something went wrong with that request. Please try again.