diff options
author | Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> | 2015-02-06 20:48:14 +0300 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2015-02-11 23:45:59 +0300 |
commit | 8aed9d661062ad19d5dd0dfdb53278e0d134854f (patch) | |
tree | 80b2749e33b4a76eade94a96df674b2ec72c1819 /src/node_object_wrap.h | |
parent | c3c2fbdf83265fe9b6f1d620c974d72605ecf7c2 (diff) |
src: cleanup `Isolate::GetCurrent()`
PR-URL: https://github.com/iojs/io.js/pull/807
Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r-- | src/node_object_wrap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index d00e1484b7c..93c73a05752 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 handle(v8::Isolate::GetCurrent()); + return v8::Local<v8::Object>::New(handle_->GetIsolate(), persistent()); } |