Skip to content

Commit 5b689b8

Browse files
sjanuaryhhellyer
authored andcommitted
Fix cpu watchdog build error on Node 0.10 (#293)
1 parent ee5e4ad commit 5b689b8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/plugins/node/prof/nodeprofplugin.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ static char * ConstructData(const CpuProfile *profile) {
207207
return NewCString(result.str());
208208
}
209209

210-
#if NODE_VERSION_AT_LEAST(0, 11, 0) // > v0.11+
211-
212210
// NOTE(tunniclm): Must be called from the V8/Node/uv thread
213211
// since it calls V8 APIs
214212
static Isolate* GetIsolate() {
@@ -219,8 +217,6 @@ static Isolate* GetIsolate() {
219217
return isolate;
220218
}
221219

222-
#endif
223-
224220
// NOTE(tunniclm): Must be called from the V8/Node/uv thread
225221
// since it calls V8 APIs
226222
static void StartTheProfiler() {

0 commit comments

Comments
 (0)