From 1c23b709299376092d778df4502f72c8855f63e3 Mon Sep 17 00:00:00 2001 From: Dan Caspi Date: Fri, 7 Oct 2016 07:47:23 -0700 Subject: [PATCH] Add support for custom JSC across CS Reviewed By: javache Differential Revision: D3944510 fbshipit-source-id: 1c67c8a53a65149250a602f2ccd6b234a022897f --- React/Executors/RCTJSCExecutor.h | 5 +++++ React/Executors/RCTJSCExecutor.mm | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/React/Executors/RCTJSCExecutor.h b/React/Executors/RCTJSCExecutor.h index ef87c8b12..8a5567a27 100644 --- a/React/Executors/RCTJSCExecutor.h +++ b/React/Executors/RCTJSCExecutor.h @@ -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 /** diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index 61fdfb495..91fd6a47a 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -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;