diff --git a/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/hermes/inspector/ABI47_0_0Inspector.h b/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/hermes/inspector/ABI47_0_0Inspector.h index d3ce0af3890837..bb5bf3b7f4ad2a 100644 --- a/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/hermes/inspector/ABI47_0_0Inspector.h +++ b/ios/versioned-react-native/ABI47_0_0/ReactNative/ReactCommon/hermes/inspector/ABI47_0_0Inspector.h @@ -372,6 +372,10 @@ folly::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 {}; diff --git a/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/hermes/inspector/ABI48_0_0Inspector.h b/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/hermes/inspector/ABI48_0_0Inspector.h index 2e1479988c2dfa..5a664cc9a70cca 100644 --- a/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/hermes/inspector/ABI48_0_0Inspector.h +++ b/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/hermes/inspector/ABI48_0_0Inspector.h @@ -372,6 +372,10 @@ folly::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 {}; diff --git a/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/hermes/inspector/ABI49_0_0Inspector.h b/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/hermes/inspector/ABI49_0_0Inspector.h index 98b49349c61542..18a873e52e56d6 100644 --- a/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/hermes/inspector/ABI49_0_0Inspector.h +++ b/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/hermes/inspector/ABI49_0_0Inspector.h @@ -372,6 +372,10 @@ 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 {}; diff --git a/react-native-lab/react-native b/react-native-lab/react-native index 27ebbc2feaca9a..99afe5ed4b7eba 160000 --- a/react-native-lab/react-native +++ b/react-native-lab/react-native @@ -1 +1 @@ -Subproject commit 27ebbc2feaca9a89138ed2800ef8e567d23a3a1f +Subproject commit 99afe5ed4b7eba9c61ac359a5e74ccf8800190b0