diff --git a/packages/react-native/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h b/packages/react-native/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h index 0062af95f8e..41ec520599f 100644 --- a/packages/react-native/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +++ b/packages/react-native/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h @@ -43,7 +43,7 @@ using RuntimeExecutor = */ inline static void executeSynchronouslyOnSameThread_CAN_DEADLOCK( const RuntimeExecutor& runtimeExecutor, - std::function&& runtimeWork) noexcept { + std::function&& runtimeWork) { std::promise runtime; std::promise runtimeCaptureBlockDone; std::promise runtimeWorkDone; @@ -75,7 +75,7 @@ inline static void executeSynchronouslyOnSameThread_CAN_DEADLOCK( template inline static DataT executeSynchronouslyOnSameThread_CAN_DEADLOCK( const RuntimeExecutor& runtimeExecutor, - std::function&& runtimeWork) noexcept { + std::function&& runtimeWork) { DataT data; executeSynchronouslyOnSameThread_CAN_DEADLOCK(