From 44618c80edfacd0ae843f32ba9ef3a0f6c4e0f16 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 16 Mar 2020 16:17:38 -0700 Subject: [PATCH] Revert D20464278: Make Lambda function called in NativeModule mutable to improve performance Differential Revision: D20464278 Original commit changeset: 846a8bc6c61c fbshipit-source-id: 71b69687ab3c279ec4e14f633700355af2291705 --- ReactCommon/cxxreact/CxxNativeModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/cxxreact/CxxNativeModule.cpp b/ReactCommon/cxxreact/CxxNativeModule.cpp index 0df2ed17e6d..94ab82bfe0b 100644 --- a/ReactCommon/cxxreact/CxxNativeModule.cpp +++ b/ReactCommon/cxxreact/CxxNativeModule.cpp @@ -148,7 +148,7 @@ void CxxNativeModule::invoke( // mhorowitz #7128529: convert C++ exceptions to Java messageQueueThread_->runOnQueue( - [method, params = std::move(params), first, second, callId]() mutable { + [method, params = std::move(params), first, second, callId]() { #ifdef WITH_FBSYSTRACE if (callId != -1) { fbsystrace_end_async_flow(TRACE_TAG_REACT_APPS, "native", callId);