Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in SourceMapIndex::flatten #73

Closed
loewenheim opened this issue Sep 15, 2023 · 0 comments · Fixed by #74
Closed

Bug in SourceMapIndex::flatten #73

loewenheim opened this issue Sep 15, 2023 · 0 comments · Fixed by #74
Assignees

Comments

@loewenheim
Copy link
Contributor

index-map.zip

The attached zip file contains an index sourcemap (index.android.bundle.map) and its flattened form (flattened.map). Looking up line 154, column 1938 in the original map correctly yields

lookup line: 153, column: 1937:
  name: "Error"
  source file: "/Users/krystofwoldrich/random/ram-bundle-sentry-test/sentry-test/App.tsx"
  source line: 92
  source column: 42
  minified line: 0
  minified column: 1932
  original function: not found
  source line:
    Sentry.captureException(new Error('First error'));

but looking up the same line and column in the flattened map yields

lookup line: 153, column: 1937:
  name: "white"
  source file: "/Users/krystofwoldrich/random/ram-bundle-sentry-test/sentry-test/App.tsx"
  source line: 87
  source column: 64
  minified line: 153
  minified column: 1935
  original function: not found
  source line:
    backgroundColor: isDarkMode ? Colors.black : Colors.white,
@loewenheim loewenheim linked a pull request Oct 9, 2023 that will close this issue
@loewenheim loewenheim self-assigned this Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant