Add support for custom JSC across CS

Reviewed By: javache

Differential Revision: D3944510

fbshipit-source-id: 1c67c8a53a65149250a602f2ccd6b234a022897f
This commit is contained in:
Dan Caspi 2016-10-07 07:47:23 -07:00 committed by Facebook Github Bot
parent 24a83fae2f
commit 1c23b70929
2 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,11 @@ RCT_EXTERN NSString *const RCTFBJSValueClassKey;
- (instancetype)initWithUseCustomJSCLibrary:(BOOL)useCustomJSCLibrary;
/**
* Marks whether the provider uses the custom implementation of JSC and not the system one.
*/
@property (nonatomic, readonly, assign) BOOL useCustomJSCLibrary;
@end
/**

View File

@ -944,7 +944,6 @@ RCT_EXPORT_METHOD(setContextName:(nonnull NSString *)name)
@implementation RCTJSContextProvider
{
dispatch_semaphore_t _semaphore;
BOOL _useCustomJSCLibrary;
NSThread *_javaScriptThread;
JSContext *_context;
RCTJSCWrapper *_jscWrapper;