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 committed by Facebook Github Bot
parent 221286be13
commit a1e053cc50
3 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

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

View File

@ -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