Use node_isolate instead of Isolate::GetCurrent().

This commit is contained in:
Cheng Zhao 2014-01-27 14:04:34 +08:00
parent 363f1da77e
commit 426bc97194
3 changed files with 3 additions and 3 deletions

View 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);