]> khamidou — GitHub mirrors - electron.git/commitdiff
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 dc51711fcdfdd74003a5cee98d801aeb350b656d..51661bb80778ed5d82a5665a69b9a1f505e7d393 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 bfb55252e3f9df7ccbb402019c78ba81210a5d72..9525cecd65ba1ab5a010c4d3ed00e73966683ec7 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 329767271f088f4ff52bbfcb134d7de8049df5f2..574d70718a8f00cef0b34a5f27170d125c6cbaf6 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);