Skip to content

Exclude empty mappings#19

Merged
vmihailenco merged 2 commits intogo-sourcemap:masterfrom
codebien:fix-zero-mappings
Mar 13, 2024
Merged

Exclude empty mappings#19
vmihailenco merged 2 commits intogo-sourcemap:masterfrom
codebien:fix-zero-mappings

Conversation

@codebien
Copy link
Contributor

In case m.mappings is empty then the current flow panics because it tries to access a previous (but non-existent) item. The patch simply restored the removed check from 73a0ee2.

Related to grafana/k6#3556

@codebien codebien marked this pull request as ready for review January 26, 2024 15:07
@codebien
Copy link
Contributor Author

Hey @vmihailenco, do you think there is any chance you will be able to review this pull request soon?

@vmihailenco vmihailenco merged commit def6f17 into go-sourcemap:master Mar 13, 2024
@vmihailenco
Copy link
Member

@codebien thanks for fixing this 👍

@codebien codebien deleted the fix-zero-mappings branch March 13, 2024 08:02
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 this pull request may close these issues.

2 participants