From 18c9797ecc8dab220ec68aae011ddb73db17a99d Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Tue, 17 Oct 2023 05:12:47 -0700 Subject: [PATCH] Symbolicate unhandled promise rejections (#40914) Summary: For a very long time when a promise rejects without an attached catch we get this warning screen without a correct stack trace, only some internal calls to the RN internals. I created [an issue for discussion](https://github.com/react-native-community/discussions-and-proposals/discussions/718) in the react-native-community repo and we figured out it was only a matter of symbolication. While it cannot be done on release without external packages and source maps, at least while developing we can provide a symbolicated stack-trace so developers can better debug the source of rejected promise. I got the stack trace symbolicated and the correct code frame. I'm missing some help trying to display it in the warning view but at the very least I can now correctly show the line of the error and log the codeframe to the console. ## Changelog: