diff --git a/core/src/main/java/org/teavm/backend/wasm/render/WasmBinaryRenderingVisitor.java b/core/src/main/java/org/teavm/backend/wasm/render/WasmBinaryRenderingVisitor.java index 37a5b7f1e..8807e2aea 100644 --- a/core/src/main/java/org/teavm/backend/wasm/render/WasmBinaryRenderingVisitor.java +++ b/core/src/main/java/org/teavm/backend/wasm/render/WasmBinaryRenderingVisitor.java @@ -989,7 +989,8 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor { } public void endLocation() { - emitLocation(null); + textLocationToEmit = null; + deferTextLocationToEmit = false; flushLocation(); if (debugLines != null) { debugLines.advance(writer.getPosition() + addressOffset);