From 055d5df3670e4bbfb4c70c4edb5ca223f2d6c96e Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 13 Mar 2024 12:36:33 +0100 Subject: [PATCH] js: fix emitting line number to debug info --- .../teavm/backend/javascript/codegen/OutputSourceWriter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/org/teavm/backend/javascript/codegen/OutputSourceWriter.java b/core/src/main/java/org/teavm/backend/javascript/codegen/OutputSourceWriter.java index ed6ad0605..6dba3b4db 100644 --- a/core/src/main/java/org/teavm/backend/javascript/codegen/OutputSourceWriter.java +++ b/core/src/main/java/org/teavm/backend/javascript/codegen/OutputSourceWriter.java @@ -80,6 +80,9 @@ public class OutputSourceWriter extends SourceWriter implements LocationProvider letSequenceSize = 0; try { innerWriter.append(";\n"); + column = 0; + line++; + lineStart = true; } catch (IOException e) { throw new RuntimeException(e); }