Fix isNuclideDebuggingAvailable on iOS

Reviewed By: bnham

Differential Revision: D6567435

fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43
This commit is contained in:
Paco Estevez Garcia 2017-12-14 08:12:21 -08:00 committed by Facebook Github Bot
parent ee8a7b4827
commit 59c3e33f63
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ static NSString *const kRCTDevSettingsUserDefaultsKey = @"RCTDevMenu";
#if RCT_ENABLE_INSPECTOR
#import "RCTInspectorDevServerHelper.h"
#import <jschelpers/JSCWrapper.h>
#endif
#if RCT_DEV
@ -255,7 +256,7 @@ static void pokeSamplingProfiler(RCTBridge *const bridge, RCTPackagerClientRespo
- (BOOL)isNuclideDebuggingAvailable
{
#if RCT_ENABLE_INSPECTOR
return true;
return facebook::react::isCustomJSCPtr(_bridge.jsContextRef);
#else
return false;
#endif //RCT_ENABLE_INSPECTOR