summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-02-25 23:25:21 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-02-25 23:45:02 +0100
commit51f6e6a9b39c15fcfd34976005fc8496430545e1 (patch)
tree88e384a7699f11be85ace097f5607fc36f1f45ea /src/fs_event_wrap.cc
parent03fe7fb55cd5dad49ffc9ae5d4067ff46bf06c95 (diff)
downloadandroid-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.tar.gz
android-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.tar.bz2
android-node-v8-51f6e6a9b39c15fcfd34976005fc8496430545e1.zip
src, test: downgrade to v8 3.14 api
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index ebc085fa00..7e3eb8c529 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -110,7 +110,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
SetErrno(uv_last_error(uv_default_loop()));
}
- return scope.Close(Integer::New(r, node_isolate));
+ return scope.Close(Integer::New(r));
}
@@ -136,7 +136,7 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
// unreasonable, right? Still, we should revisit this before v1.0.
if (status) {
SetErrno(uv_last_error(uv_default_loop()));
- eventStr = String::Empty(node_isolate);
+ eventStr = String::Empty();
}
else if (events & UV_RENAME) {
eventStr = String::New("rename");
@@ -150,10 +150,10 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
}
Local<Value> argv[3] = {
- Integer::New(status, node_isolate),
+ Integer::New(status),
eventStr,
filename ? static_cast<Local<Value> >(String::New(filename))
- : Local<Value>::New(node_isolate, v8::Null(node_isolate))
+ : Local<Value>::New(v8::Null())
};
if (onchange_sym.IsEmpty()) {
@@ -172,11 +172,11 @@ Handle<Value> FSEventWrap::Close(const Arguments& args) {
// and legal, HandleWrap::Close() deals with them the same way.
assert(!args.Holder().IsEmpty());
assert(args.Holder()->InternalFieldCount() > 0);
- void* ptr = args.Holder()->GetAlignedPointerFromInternalField(0);
+ void* ptr = args.Holder()->GetPointerFromInternalField(0);
FSEventWrap* wrap = static_cast<FSEventWrap*>(ptr);
if (wrap == NULL || wrap->initialized_ == false) {
- return Undefined(node_isolate);
+ return Undefined();
}
wrap->initialized_ = false;