mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 04:13:51 +08:00
fixed flow error on Travis
Summary: Closes https://github.com/facebook/react-native/pull/6530 Differential Revision: D3071277 fb-gh-sync-id: e2cfd2d2a8cbf5a862dcdb79fe834b1fdbcba107 shipit-source-id: e2cfd2d2a8cbf5a862dcdb79fe834b1fdbcba107
This commit is contained in:
committed by
Facebook Github Bot 7
parent
fa44607bf6
commit
da5596c97d
@@ -66,15 +66,16 @@ void Bridge::callFunction(
|
||||
systraceCookie);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
runOnExecutorQueue(executorToken, [moduleId, methodId, arguments, tracingName, systraceCookie] (JSExecutor* executor) {
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
FbSystraceAsyncFlow::end(
|
||||
TRACE_TAG_REACT_CXX_BRIDGE,
|
||||
tracingName.c_str(),
|
||||
systraceCookie);
|
||||
FbSystraceSection s(TRACE_TAG_REACT_CXX_BRIDGE, tracingName.c_str());
|
||||
#endif
|
||||
|
||||
#else
|
||||
runOnExecutorQueue(executorToken, [moduleId, methodId, arguments, tracingName] (JSExecutor* executor) {
|
||||
#endif
|
||||
// This is safe because we are running on the executor's thread: it won't
|
||||
// destruct until after it's been unregistered (which we check above) and
|
||||
// that will happen on this thread
|
||||
@@ -91,15 +92,16 @@ void Bridge::invokeCallback(ExecutorToken executorToken, const double callbackId
|
||||
systraceCookie);
|
||||
#endif
|
||||
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
runOnExecutorQueue(executorToken, [callbackId, arguments, systraceCookie] (JSExecutor* executor) {
|
||||
#ifdef WITH_FBSYSTRACE
|
||||
FbSystraceAsyncFlow::end(
|
||||
TRACE_TAG_REACT_CXX_BRIDGE,
|
||||
"<callback>",
|
||||
systraceCookie);
|
||||
FbSystraceSection s(TRACE_TAG_REACT_CXX_BRIDGE, "Bridge.invokeCallback");
|
||||
#endif
|
||||
|
||||
#else
|
||||
runOnExecutorQueue(executorToken, [callbackId, arguments] (JSExecutor* executor) {
|
||||
#endif
|
||||
executor->invokeCallback(callbackId, arguments);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ LOCAL_SRC_FILES:= \
|
||||
folly/Conv.cpp \
|
||||
folly/detail/FunctionalExcept.cpp \
|
||||
folly/detail/MallocImpl.cpp \
|
||||
folly/Malloc.cpp \
|
||||
folly/StringBase.cpp \
|
||||
folly/dynamic.cpp \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user