Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2011-07-27 05:37:21 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-27 05:59:33 +0400
commit187fe27a6e7da9d1f5ec9896af51a16c69d4c6c2 (patch)
tree2a72a34d8abdcc18607ce4d78b0ee70af4117721 /src/pipe_wrap.cc
parentde261713bfdffece3a5675fcf325dbcca7542e87 (diff)
stdio binding + javascript to enable process.stdin.listen()
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 15de2a3919e..605ea78d4c5 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -30,7 +30,7 @@ using v8::Context;
using v8::Arguments;
using v8::Integer;
-static Persistent<Function> constructor;
+Persistent<Function> pipeConstructor;
// TODO share with TCPWrap?
@@ -61,9 +61,9 @@ class PipeWrap : StreamWrap {
NODE_SET_PROTOTYPE_METHOD(t, "listen", Listen);
NODE_SET_PROTOTYPE_METHOD(t, "connect", Connect);
- constructor = Persistent<Function>::New(t->GetFunction());
+ pipeConstructor = Persistent<Function>::New(t->GetFunction());
- target->Set(String::NewSymbol("Pipe"), constructor);
+ target->Set(String::NewSymbol("Pipe"), pipeConstructor);
}
private:
@@ -137,7 +137,7 @@ class PipeWrap : StreamWrap {
}
// Instanciate the client javascript object and handle.
- Local<Object> client_obj = constructor->NewInstance();
+ Local<Object> client_obj = pipeConstructor->NewInstance();
// Unwrap the client javascript object.
assert(client_obj->InternalFieldCount() > 0);