-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently return mutable position objects from source map consumer
Summary: Previously, `SectionsConsumer` would reuse the frozen `EMPTY_POSITION` object when querying positions that don't belong to any section. With this diff we'll clone it instead. There is an `originalPositionFor` call site in `metro-symbolicate` which relies on adding properties to the position object, which is possible in the `source-map` API we're emulating, so here we explicitly make this supported. Reviewed By: MichaReiser Differential Revision: D26166651 fbshipit-source-id: ee1e0aaefbbb59a0fd5f6bf24d94ffe11a3a84d6
- Loading branch information
1 parent
2cc5aa8
commit fab9af9
Showing
3 changed files
with
49 additions
and
5 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
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