hevm: tty: skip null src maps when jumping with shift+n#832
hevm: tty: skip null src maps when jumping with shift+n#832
Conversation
|
btw just to clarify the reproduction cases a bit more:
|
|
if you want a repo to try it on, can follow the getting started instructions on the README of the this repo and debug the first test the menu shows you: https://github.com/rari-Capital/vaults |
sad, I was testing in dss and I thought I'd fixed this. will take a look at vaults and see if I can figure out what's going on.
hmmmm, yeah this is bad, issue would be great 👍
agree |
|
|



Description
I think this fixes #686, but since the source map format and parser are very mysterious to me I'm not really sure that I've done the right thing.
Afaict the issue was that we sometimes get a sourcemap back from
currentPositionthat looks like this:Which is treated as distinct by the check in
isNextSourcePosition. I'm assuming the-1in this case is a sentinel value meaning the given source pc does not have a corresponding position in the provided source map? Perhaps there is a cleaner fix here where we make this position unrepresentable? @MrChico thoughts?cc @transmissions11 for testing.
Checklist