Add Framework name to Attach selection

Reviewed By: Hypuk, javache

Differential Revision: D5389047

fbshipit-source-id: 90e2a5f805561e47e7705e7935ced7556a374616
This commit is contained in:
Paco Estevez Garcia 2017-07-14 07:44:18 -07:00 коммит произвёл Facebook Github Bot
Родитель 221286be13
Коммит a1e053cc50
3 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -288,6 +288,7 @@ struct RCTInstanceCallback : public InstanceCallback {
[self.delegate shouldBridgeUseCustomJSC:self];
// The arg is a cache dir. It's not used with standard JSC.
executorFactory.reset(new JSCExecutorFactory(folly::dynamic::object
("OwnerIdentity", "ReactNative")
("UseCustomJSC", (bool)useCustomJSC)
#if RCT_PROFILE
("StartSamplingProfilerOnInit", (bool)self.devSettings.startSamplingProfilerOnLaunch)

Просмотреть файл

@ -18,6 +18,7 @@ public class JSCJavaScriptExecutor extends JavaScriptExecutor {
private ReadableNativeMap mJSCConfig;
public Factory(WritableNativeMap jscConfig) {
jscConfig.putString("OwnerIdentity", "ReactNative");
mJSCConfig = jscConfig;
}

Просмотреть файл

@ -219,8 +219,9 @@ void JSCExecutor::initOnJSVMThread() throw(JSException) {
#ifdef WITH_INSPECTOR
if (canUseInspector(m_context)) {
const std::string ownerId = m_jscConfig.getDefault("OwnerIdentity", "main").getString();
IInspector* pInspector = JSC_JSInspectorGetInstance(true);
pInspector->registerGlobalContext("main", m_context);
pInspector->registerGlobalContext(ownerId, m_context);
}
#endif