SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

RuntimeExecutor: Remove noexcept from sync ui thread utils (#51514)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51514

This util can execute arbitrary runtimeWork, which can throw.

In the future, we'll also make these utils execute ui blocks posted from the javascript thread. And those will be able to throw.

Therefore, let's remove the noexcept. Otherwise, if an exception bubbles up to this util, it will just crash this app.

Changelog: [General][Changed] - RuntimeExecutor:  Remove noexcept from sync ui thread utils

Reviewed By: javache

Differential Revision: D75183993

fbshipit-source-id: 6c3a319fe3a76165a265815e6343220cf9db6fde
R
Ramanpreet Nara committed
7ef278af505deba6b8a47876c6824f9a7fefa427
Parent: 4974839
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 5/27/2025, 7:21:04 PM