diff --git a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h index af942c0cdeae5b..caa1dc1c0ed07c 100644 --- a/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +++ b/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h @@ -8,8 +8,8 @@ #pragma once #include +#include #include -#include namespace facebook::react { @@ -32,7 +32,7 @@ static inline SchedulerPriority fromRawValue(double value) { case 5: return SchedulerPriority::IdlePriority; } - LOG(FATAL) << "Unknown SchedulerPriority"; + react_native_assert(false && "Unsupported SchedulerPriority value"); return SchedulerPriority::NormalPriority; } @@ -50,7 +50,7 @@ static inline std::chrono::milliseconds timeoutForSchedulerPriority( case SchedulerPriority::IdlePriority: return std::chrono::minutes(5); } - LOG(FATAL) << "Unknown SchedulerPriority"; + react_native_assert(false && "Unsupported SchedulerPriority value"); return std::chrono::seconds(5); }