[K1] Fix string offsets to include quotes in the same way it's done in FIR
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(){
|
||||
@@ -47,7 +47,7 @@ fun fail() : String {
|
||||
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:5 $box (4, 9, 15, 15, 15, 15, 20, 20, 20, 20)
|
||||
// test.kt:5 $box (4, 9, 14, 14, 14, 14, 19, 19, 19, 19)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -61,10 +61,10 @@ fun fail() : String {
|
||||
// Array.kt:75 $kotlin.Array.set (8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16, 8, 20, 27, 16)
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5, 5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4, 11, 4, 11, 4)
|
||||
// test.kt:17 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4, 12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:17 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4, 11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// test.kt:6 $box
|
||||
// test.kt:21 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:21 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8, 15, 8, 15, 8, 15, 8, 15, 8)
|
||||
// test.kt:8 $box (4, 9, 4)
|
||||
// test.kt:9 $box (16, 22, 22, 22, 22, 27, 27, 27, 27)
|
||||
// test.kt:9 $box (16, 21, 21, 21, 21, 26, 26, 26, 26)
|
||||
// test.kt:10 $box
|
||||
|
||||
Reference in New Issue
Block a user