Use node_isolate instead of Isolate::GetCurrent().
authorCheng Zhao <zcbenz@gmail.com>
Mon, 27 Jan 2014 06:04:34 +0000 (14:04 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 27 Jan 2014 06:04:34 +0000 (14:04 +0800)
browser/api/atom_api_app.cc
browser/api/atom_api_auto_updater.cc
common/api/atom_api_screen.cc

index dc51711..51661bb 100644 (file)
@@ -174,7 +174,7 @@ void App::DockGetBadgeText(const v8::FunctionCallbackInfo<v8::Value>& args) {
 
 // static
 void App::Initialize(v8::Handle<v8::Object> target) {
-  v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
+  v8::HandleScope handle_scope(node_isolate);
 
   v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(New);
   t->InstanceTemplate()->SetInternalFieldCount(1);
index bfb5525..9525cec 100644 (file)
@@ -102,7 +102,7 @@ void AutoUpdater::QuitAndInstall(
 
 // static
 void AutoUpdater::Initialize(v8::Handle<v8::Object> target) {
-  v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
+  v8::HandleScope handle_scope(node_isolate);
 
   v8::Local<v8::FunctionTemplate> t(
       v8::FunctionTemplate::New(AutoUpdater::New));
index 3297672..574d707 100644 (file)
@@ -67,7 +67,7 @@ void Screen::GetPrimaryDisplay(
 
 // static
 void Screen::Initialize(v8::Handle<v8::Object> target) {
-  v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
+  v8::HandleScope handle_scope(node_isolate);
 
   v8::Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(New);
   t->InstanceTemplate()->SetInternalFieldCount(1);