Skip to content

Commit abf8505

Browse files
committed
Fix src for node v4
1 parent 75a3c78 commit abf8505

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/debug.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,16 @@ namespace nodex {
9494
if (expression.IsEmpty())
9595
RETURN(Undefined());
9696

97+
9798
Local<Context> debug_context = v8::Debug::GetDebugContext();
99+
#if (NODE_MODULE_VERSION > 45)
98100
if (debug_context.IsEmpty()) {
99101
// Force-load the debug context.
100102
v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext(), info[0]);
101103
debug_context = v8::Debug::GetDebugContext();
102104
}
105+
#endif
106+
103107
Context::Scope context_scope(debug_context);
104108

105109
TryCatch tryCatch;

0 commit comments

Comments
 (0)