Skip to content

Commit 46b133f

Browse files
committed
Fix 0.10 build
1 parent 45d2405 commit 46b133f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/debug.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace nodex {
5959
if (expression.IsEmpty())
6060
RETURN(Undefined());
6161

62-
Local<Context> current_context = Isolate::GetCurrent()->GetCurrentContext();
62+
Local<Context> current_context = Nan::GetCurrentContext();
6363
Local<Context> debug_context = v8::Debug::GetDebugContext();
6464
#if (NODE_MODULE_VERSION > 45)
6565
if (debug_context.IsEmpty()) {
@@ -89,7 +89,7 @@ namespace nodex {
8989
}
9090

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

105105
static NAN_METHOD(UnshareSecurityToken) {
106-
Local<Context> current_context = info.GetIsolate()->GetCurrentContext();
106+
Local<Context> current_context = Nan::GetCurrentContext();
107107
Local<Context> debug_context = v8::Debug::GetDebugContext();
108108
#if (NODE_MODULE_VERSION > 45)
109109
if (debug_context.IsEmpty()) {

0 commit comments

Comments
 (0)