We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a3c78 commit abf8505Copy full SHA for abf8505
1 file changed
src/debug.cc
@@ -94,12 +94,16 @@ namespace nodex {
94
if (expression.IsEmpty())
95
RETURN(Undefined());
96
97
+
98
Local<Context> debug_context = v8::Debug::GetDebugContext();
99
+#if (NODE_MODULE_VERSION > 45)
100
if (debug_context.IsEmpty()) {
101
// Force-load the debug context.
102
v8::Debug::GetMirror(info.GetIsolate()->GetCurrentContext(), info[0]);
103
debug_context = v8::Debug::GetDebugContext();
104
}
105
+#endif
106
107
Context::Scope context_scope(debug_context);
108
109
TryCatch tryCatch;
0 commit comments