mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 13:05:18 +08:00
Cleanup cxxreact BUCK file
Reviewed By: mzlee Differential Revision: D5020563 fbshipit-source-id: 286a2d1c44623b5b9fd923ef8684d263500791b3
This commit is contained in:
committed by
Facebook Github Bot
parent
8b53a2b29b
commit
19e6557d2e
@@ -200,13 +200,13 @@ void JSCExecutor::initOnJSVMThread() throw(JSException) {
|
||||
// Create a custom global class, so we can store data in it later using JSObjectSetPrivate
|
||||
JSClassRef globalClass = nullptr;
|
||||
{
|
||||
SystraceSection s("JSClassCreate");
|
||||
SystraceSection s_("JSClassCreate");
|
||||
JSClassDefinition definition = kJSClassDefinitionEmpty;
|
||||
definition.attributes |= kJSClassAttributeNoAutomaticPrototype;
|
||||
globalClass = JSC_JSClassCreate(useCustomJSC, &definition);
|
||||
}
|
||||
{
|
||||
SystraceSection s("JSGlobalContextCreateInGroup");
|
||||
SystraceSection s_("JSGlobalContextCreateInGroup");
|
||||
m_context = JSC_JSGlobalContextCreateInGroup(useCustomJSC, nullptr, globalClass);
|
||||
}
|
||||
JSC_JSClassRelease(useCustomJSC, globalClass);
|
||||
|
||||
Reference in New Issue
Block a user