Skip to content

Commit

Permalink
Fix 0.10 build
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Jan 26, 2016
1 parent 45d2405 commit 46b133f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace nodex {
if (expression.IsEmpty())
RETURN(Undefined());

Local<Context> current_context = Isolate::GetCurrent()->GetCurrentContext();
Local<Context> current_context = Nan::GetCurrentContext();
Local<Context> debug_context = v8::Debug::GetDebugContext();
#if (NODE_MODULE_VERSION > 45)
if (debug_context.IsEmpty()) {
Expand Down Expand Up @@ -89,7 +89,7 @@ namespace nodex {
}

static NAN_METHOD(ShareSecurityToken) {
Local<Context> current_context = info.GetIsolate()->GetCurrentContext();
Local<Context> current_context = Nan::GetCurrentContext();
Local<Context> debug_context = v8::Debug::GetDebugContext();
#if (NODE_MODULE_VERSION > 45)
if (debug_context.IsEmpty()) {
Expand All @@ -103,7 +103,7 @@ namespace nodex {
}

static NAN_METHOD(UnshareSecurityToken) {
Local<Context> current_context = info.GetIsolate()->GetCurrentContext();
Local<Context> current_context = Nan::GetCurrentContext();
Local<Context> debug_context = v8::Debug::GetDebugContext();
#if (NODE_MODULE_VERSION > 45)
if (debug_context.IsEmpty()) {
Expand Down

0 comments on commit 46b133f

Please sign in to comment.