Cleanup cxxreact BUCK file

Reviewed By: mzlee

Differential Revision: D5020563

fbshipit-source-id: 286a2d1c44623b5b9fd923ef8684d263500791b3
This commit is contained in:
Pieter De Baets
2017-05-11 04:46:44 -07:00
committed by Facebook Github Bot
parent 8b53a2b29b
commit 19e6557d2e
7 changed files with 72 additions and 115 deletions

View File

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