mirror of
https://github.com/gren-lang/compiler.git
synced 2024-10-03 20:17:48 +03:00
Merge pull request #256 from gren-lang/bugfix-include-last-line-of-sourcemaps
Make sure to include last line of source mappings.
This commit is contained in:
commit
fae84eb807
@ -86,7 +86,7 @@ mappingMapUpdater toInsert maybeVal =
|
||||
|
||||
parseMappingsHelp :: Word16 -> Word16 -> Map Word16 [JS.Mapping] -> Mappings -> Mappings
|
||||
parseMappingsHelp currentLine lastLine mappingMap acc =
|
||||
if currentLine >= lastLine
|
||||
if currentLine > lastLine
|
||||
then acc
|
||||
else case Map.lookup currentLine mappingMap of
|
||||
Nothing ->
|
||||
|
Loading…
Reference in New Issue
Block a user