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:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-26 02:25:21 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2013-02-26 02:45:02 +0400
commit51f6e6a9b39c15fcfd34976005fc8496430545e1 (patch)
tree88e384a7699f11be85ace097f5607fc36f1f45ea /src/pipe_wrap.cc
parent03fe7fb55cd5dad49ffc9ae5d4067ff46bf06c95 (diff)
src, test: downgrade to v8 3.14 api
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r--src/pipe_wrap.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc
index 149c4f21269..3952a0799c4 100644
--- a/src/pipe_wrap.cc
+++ b/src/pipe_wrap.cc
@@ -69,7 +69,7 @@ Local<Object> PipeWrap::Instantiate() {
PipeWrap* PipeWrap::Unwrap(Local<Object> obj) {
assert(!obj.IsEmpty());
assert(obj->InternalFieldCount() > 0);
- return static_cast<PipeWrap*>(obj->GetAlignedPointerFromInternalField(0));
+ return static_cast<PipeWrap*>(obj->GetPointerFromInternalField(0));
}
@@ -156,7 +156,7 @@ Handle<Value> PipeWrap::Bind(const Arguments& args) {
// Error starting the pipe.
if (r) SetErrno(uv_last_error(uv_default_loop()));
- return scope.Close(Integer::New(r, node_isolate));
+ return scope.Close(Integer::New(r));
}
@@ -170,7 +170,7 @@ Handle<Value> PipeWrap::SetPendingInstances(const Arguments& args) {
uv_pipe_pending_instances(&wrap->handle_, instances);
- return v8::Null(node_isolate);
+ return v8::Null();
}
#endif
@@ -187,7 +187,7 @@ Handle<Value> PipeWrap::Listen(const Arguments& args) {
// Error starting the pipe.
if (r) SetErrno(uv_last_error(uv_default_loop()));
- return scope.Close(Integer::New(r, node_isolate));
+ return scope.Close(Integer::New(r));
}
@@ -214,7 +214,7 @@ void PipeWrap::OnConnection(uv_stream_t* handle, int status) {
// Unwrap the client javascript object.
assert(client_obj->InternalFieldCount() > 0);
PipeWrap* client_wrap =
- static_cast<PipeWrap*>(client_obj->GetAlignedPointerFromInternalField(0));
+ static_cast<PipeWrap*>(client_obj->GetPointerFromInternalField(0));
if (uv_accept(handle, (uv_stream_t*)&client_wrap->handle_)) return;
@@ -248,11 +248,11 @@ void PipeWrap::AfterConnect(uv_connect_t* req, int status) {
}
Local<Value> argv[5] = {
- Integer::New(status, node_isolate),
- Local<Value>::New(node_isolate, wrap->object_),
- Local<Value>::New(node_isolate, req_wrap->object_),
- Local<Value>::New(node_isolate, Boolean::New(readable)),
- Local<Value>::New(node_isolate, Boolean::New(writable))
+ Integer::New(status),
+ Local<Value>::New(wrap->object_),
+ Local<Value>::New(req_wrap->object_),
+ Local<Value>::New(Boolean::New(readable)),
+ Local<Value>::New(Boolean::New(writable))
};
if (oncomplete_sym.IsEmpty()) {
@@ -273,7 +273,7 @@ Handle<Value> PipeWrap::Open(const Arguments& args) {
uv_pipe_open(&wrap->handle_, fd);
- return scope.Close(v8::Null(node_isolate));
+ return scope.Close(v8::Null());
}