mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 23:27:05 +08:00
Thread the JSI runtime descriptor up into the RCTDevMenu title
Reviewed By: javache Differential Revision: D5643014 fbshipit-source-id: 977be5729c57c0d01ff67b268031ad6fdbf88a07
This commit is contained in:
committed by
Facebook Github Bot
parent
7d4a5b67d4
commit
d48f08cad6
@@ -509,6 +509,18 @@ void JSCExecutor::setGlobalVariable(std::string propName, std::unique_ptr<const
|
||||
}
|
||||
}
|
||||
|
||||
std::string JSCExecutor::getDescription() {
|
||||
#if defined(__APPLE__)
|
||||
if (isCustomJSCPtr(m_context)) {
|
||||
return "Custom JSC";
|
||||
} else {
|
||||
return "System JSC";
|
||||
}
|
||||
#else
|
||||
return "JSC";
|
||||
#endif
|
||||
}
|
||||
|
||||
String JSCExecutor::adoptString(std::unique_ptr<const JSBigString> script) {
|
||||
#if defined(WITH_FBJSCEXTENSIONS)
|
||||
const JSBigString* string = script.release();
|
||||
|
||||
Reference in New Issue
Block a user