mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add a default context name to RCTJSCExecutor
Reviewed By: mmmulani Differential Revision: D4015748 fbshipit-source-id: 077287b8438aa13f2a1479d68eacb0662bf295aa
This commit is contained in:
committed by
Facebook Github Bot
parent
82d6ac1a51
commit
8355ef91ad
@@ -200,6 +200,11 @@ void JSCExecutor::destroy() {
|
||||
});
|
||||
}
|
||||
|
||||
void JSCExecutor::setContextName(const std::string& name) {
|
||||
String jsName = String(name.c_str());
|
||||
JSGlobalContextSetName(m_context, static_cast<JSStringRef>(jsName));
|
||||
}
|
||||
|
||||
void JSCExecutor::initOnJSVMThread() throw(JSException) {
|
||||
SystraceSection s("JSCExecutor.initOnJSVMThread");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user