Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
SourceMap::start_point
for empty spans
When the span is empty, it doesn't really have a first character. Even worse, when it's empty at the end of the file, adding a byte offset will make it be out of bounds. So we just return the empty span in these cases.
- Loading branch information