mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
75d03b56fa
Summary: Makes stack trace parsing return a consistent representation of column numbers when using Hermes, whether we're executing bytecode (in prod) or source code (in dev). This is achieved by creating a new full-fidelity stack trace parser for Hermes. NOTE: We still use the `stacktrace-parser` package for other engines, so this fix applies only to Hermes and not to JSC - that will be fixed separately in an upcoming diff. This fixes a bug where we were skewing some stack traces by sending 1-based column numbers to the Metro symbolication endpoint, which expects them to be 0-based. The bug is only noticeable in *some* cases, namely where the column immediately following the correct one is in a different function. Changelog: [Internal] Reviewed By: cpojer Differential Revision: D18627930 fbshipit-source-id: abd80846f00f24428670b2c92153564fb4bb2aff