Skip to content

Commit a606f84

Browse files
committed
src: fix build break for !NODE_USE_V8_PLATFORM
`StartInspector` should return `bool` but there was signature mismatch if not building for v8 platform i.e. `!NODE_USE_V8_PLATFORM`. I have submitted PR nodejs/node#8114 to fix this in node repo. PR-URL: nodejs#108 Reviewed-By: Sandeep Agarwal <agarwal.sandeep@microsoft.com>
1 parent 45ff9e9 commit a606f84

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/node.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ static struct {
220220
void Initialize(int thread_pool_size) {}
221221
void PumpMessageLoop(Isolate* isolate) {}
222222
void Dispose() {}
223-
void StartInspector(Environment *env, int port, bool wait) {
223+
bool StartInspector(Environment *env, int port, bool wait) {
224224
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");
225+
return false; // make compiler happy
225226
}
226227
#endif // !NODE_USE_V8_PLATFORM
227228
} v8_platform;

0 commit comments

Comments
 (0)