forked from facebook/metro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally accept a SourceURL parameter for debug builds
Summary: Adds a SourceURL field to the stackframes, which can be used to extract the required information if we deal with a classic bundle, particularly when debug info is used to extract the information from Hermes. Reviewed By: motiz88 Differential Revision: D27650889 fbshipit-source-id: 768cdce4ae324c3481caf8fd57635d47e20bb3c3
- Loading branch information
1 parent
af23a1b
commit 7ad7560
Showing
5 changed files
with
81 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/metro-symbolicate/src/__tests__/__fixtures__/coverageStackTrace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"executedFunctions": [ | ||
{ | ||
"line": 0, | ||
"column": 25522, | ||
"SourceURL": "main.js" | ||
}, | ||
{ | ||
"line": 0, | ||
"column": 25877, | ||
"SourceURL": "main.js" | ||
}, | ||
{ | ||
"line": 0, | ||
"column": 139, | ||
"SourceURL": "seg-1.js" | ||
} | ||
] | ||
} |
12 changes: 8 additions & 4 deletions
12
packages/metro-symbolicate/src/__tests__/__fixtures__/coverageStackTraceCJS.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"executedFunctions": [ | ||
{ | ||
"SegmentID": 0, | ||
"VirtualOffset": 23819 | ||
"line": 0, | ||
"column": 23819 | ||
}, | ||
{ | ||
"SegmentID": 0, | ||
"VirtualOffset": 22579 | ||
"line": 0, | ||
"column": 22579 | ||
}, | ||
{ | ||
"line": 51, | ||
"column": 27 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters