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

fix: handle non existing token position in visualizer #14

Merged
merged 6 commits into from
Dec 15, 2024

Conversation

hi-ogawa
Copy link
Collaborator

Currently it panics as out-of-bound index, so I fixed it with a visible warning in visualizer. I was reading source-map-validator (cf. #11) and it looks like they validate token position too https://github.com/jkup/source-map-validator/blob/183339fa5cb10f374587552251ed88064f26bfde/src/validators/SourceMapMappingsValidator.ts#L34-L41

@Boshen Boshen merged commit ffe5b02 into oxc-project:main Dec 15, 2024
4 checks passed
@oxc-bot oxc-bot mentioned this pull request Dec 15, 2024
@hi-ogawa hi-ogawa deleted the feat-visualizer-wrong-mapping branch December 15, 2024 04:39
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