From 967386e3475dd88b249b5ff04b80f4edb3783a54 Mon Sep 17 00:00:00 2001 From: Robin Heggelund Hansen Date: Wed, 7 Aug 2024 13:55:50 +0200 Subject: [PATCH] Make sure to include last line of source mappings. --- compiler/src/Generate/SourceMap.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/Generate/SourceMap.hs b/compiler/src/Generate/SourceMap.hs index d464ff2e..fa7a41e1 100644 --- a/compiler/src/Generate/SourceMap.hs +++ b/compiler/src/Generate/SourceMap.hs @@ -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 ->