Allow bridge delegate to specify whether to use custom JSC wrapper

Reviewed By: mhorowitz

Differential Revision: D4197657

fbshipit-source-id: 09e050f802b41c9a7016456c25381018b2123553
This commit is contained in:
Pieter De Baets
2016-11-23 03:58:41 -08:00
committed by Facebook Github Bot
parent 55a615bf98
commit cb3e575deb
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -216,7 +216,15 @@ void JSCExecutor::setContextName(const std::string& name) {
void JSCExecutor::initOnJSVMThread() throw(JSException) {
SystraceSection s("JSCExecutor.initOnJSVMThread");
#if defined(__APPLE__)
const bool useCustomJSC = m_jscConfig.getDefault("UseCustomJSC", false).getBool();
if (useCustomJSC) {
JSC_configureJSCForIOS(true);
}
#else
const bool useCustomJSC = false;
#endif
#if defined(WITH_FB_JSC_TUNING) && defined(__ANDROID__)
configureJSCForAndroid(m_jscConfig);
#endif