summaryrefslogtreecommitdiff
path: root/src/node_object_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-02-17 19:35:59 +0100
committerVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>2015-02-18 00:07:49 +0300
commitfb28c91074827bd98daf98b711e2f0bfe9477f46 (patch)
treebec137b04237d40dbbfb5c01c49688bb46960fdf /src/node_object_wrap.h
parent0555b3c785c637683e7e8a2fdd0e440cb234758e (diff)
downloadandroid-node-v8-fb28c91074827bd98daf98b711e2f0bfe9477f46.tar.gz
android-node-v8-fb28c91074827bd98daf98b711e2f0bfe9477f46.tar.bz2
android-node-v8-fb28c91074827bd98daf98b711e2f0bfe9477f46.zip
src: fix add-on builds, partially revert 8aed9d66
Commit 8aed9d66 ("src: cleanup `Isolate::GetCurrent()`") breaks building add-ons because of the following: In file included from ../node_modules/nan/nan.h:27:0, from ../src/binding.cc:18: /home/bnoordhuis/src/v1.x/src/node_object_wrap.h: In member function 'v8::Local<v8::Object> node::ObjectWrap::handle()': /home/bnoordhuis/src/v1.x/src/node_object_wrap.h:39:46: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::Object>' return v8::Local<v8::Object>::New(handle_->GetIsolate(), persistent()); Mea culpa, I was one of the reviewers. PR-URL: https://github.com/iojs/io.js/pull/868 Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r--src/node_object_wrap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index 93c73a0575..d00e1484b7 100644
--- a/src/node_object_wrap.h
+++ b/src/node_object_wrap.h
@@ -36,7 +36,7 @@ class ObjectWrap {
inline v8::Local<v8::Object> handle() {
- return v8::Local<v8::Object>::New(handle_->GetIsolate(), persistent());
+ return handle(v8::Isolate::GetCurrent());
}