From 426bc9719414196f72c581ff263df24561e3b78c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 27 Jan 2014 14:04:34 +0800 Subject: [PATCH] Use node_isolate instead of Isolate::GetCurrent(). --- browser/api/atom_api_app.cc | 2 +- browser/api/atom_api_auto_updater.cc | 2 +- common/api/atom_api_screen.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/api/atom_api_app.cc b/browser/api/atom_api_app.cc index dc51711fcdfd..51661bb80778 100644 --- a/browser/api/atom_api_app.cc +++ b/browser/api/atom_api_app.cc @@ -174,7 +174,7 @@ void App::DockGetBadgeText(const v8::FunctionCallbackInfo& args) { // static void App::Initialize(v8::Handle target) { - v8::HandleScope handle_scope(v8::Isolate::GetCurrent()); + v8::HandleScope handle_scope(node_isolate); v8::Local t = v8::FunctionTemplate::New(New); t->InstanceTemplate()->SetInternalFieldCount(1); diff --git a/browser/api/atom_api_auto_updater.cc b/browser/api/atom_api_auto_updater.cc index bfb55252e3f9..9525cecd65ba 100644 --- a/browser/api/atom_api_auto_updater.cc +++ b/browser/api/atom_api_auto_updater.cc @@ -102,7 +102,7 @@ void AutoUpdater::QuitAndInstall( // static void AutoUpdater::Initialize(v8::Handle target) { - v8::HandleScope handle_scope(v8::Isolate::GetCurrent()); + v8::HandleScope handle_scope(node_isolate); v8::Local t( v8::FunctionTemplate::New(AutoUpdater::New)); diff --git a/common/api/atom_api_screen.cc b/common/api/atom_api_screen.cc index 329767271f08..574d70718a8f 100644 --- a/common/api/atom_api_screen.cc +++ b/common/api/atom_api_screen.cc @@ -67,7 +67,7 @@ void Screen::GetPrimaryDisplay( // static void Screen::Initialize(v8::Handle target) { - v8::HandleScope handle_scope(v8::Isolate::GetCurrent()); + v8::HandleScope handle_scope(node_isolate); v8::Local t = v8::FunctionTemplate::New(New); t->InstanceTemplate()->SetInternalFieldCount(1);