JVM: fix SMAP range extension logic
If `mapLineNumber` was called in non-monotonic order, e.g. N then N+2 then N+1, the first two calls created a range that spans [N; N+2] but the third call did not reuse it.
This commit is contained in:
+1
-1
@@ -16,4 +16,4 @@ inline fun baz() {
|
||||
|
||||
fun nop() {}
|
||||
|
||||
// 2 20 21 3 4 25 26 5 27 6 9 10 11 14 15 17
|
||||
// 2 20 21 3 4 25 26 5 22 6 9 10 11 14 15 17
|
||||
@@ -18,4 +18,4 @@ fun fail() : String {
|
||||
throw AssertionError("fail")
|
||||
}
|
||||
|
||||
// 2 22 3 2 23 5 6 24 5 25 7 10 14 18
|
||||
// 2 22 3 2 22 5 6 23 5 24 7 10 14 18
|
||||
Reference in New Issue
Block a user