diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/Inspector.h b/packages/react-native/ReactCommon/hermes/inspector-modern/Inspector.h index ea5d629cc7e3a2..aebeb828d27d66 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/Inspector.h +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/Inspector.h @@ -372,10 +372,6 @@ std::optional runUserCallback(C &cb, A &&...arg) { cb(std::forward(arg)...); } catch (const std::exception &e) { return UserCallbackException(e); - } catch (const std::runtime_error &e) { - // NOTE(kudo): Adding this to catch Hermes inspector exceptions after SDK 49. - // I still not figure out why the std::runtime_error is not catched by the std::exception above. - return UserCallbackException(e); } return {};