[K1] Fix string offsets to include quotes in the same way it's done in FIR

This commit is contained in:
Artem Kobzar
2024-02-02 14:43:46 +00:00
committed by Space Team
parent 434470a4f5
commit 4f521aa05c
42 changed files with 147 additions and 154 deletions
@@ -37,7 +37,7 @@ fun box(): String {
// test.kt:1 $box__JsExportAdapter
// test.kt:15 $box
// test.kt:4 $box (11, 11, 4)
// test.kt:3 $box (46, 46, 46, 46)
// test.kt:3 $box (45, 45, 45, 45)
// String.kt:141 $kotlin.stringLiteral (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)
// 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)
@@ -53,9 +53,9 @@ fun box(): String {
// String.kt:149 $kotlin.stringLiteral (11, 4)
// test.kt:16 $box
// test.kt:11 $box (11, 11, 4)
// test.kt:8 $box (5, 5, 5, 5)
// test.kt:8 $box (4, 4, 4, 4)
// String.kt:143 $kotlin.stringLiteral (15, 8, 15, 8)
// test.kt:17 $box (12, 12, 12, 12, 4)
// test.kt:17 $box (11, 11, 11, 11, 4)
// ExternalWrapper.kt:200 $kotlin.wasm.internal.kotlinToJsStringAdapter
// ExternalWrapper.kt:201 $kotlin.wasm.internal.kotlinToJsStringAdapter
// Strings.kt:161 $kotlin.wasm.internal.kotlinToJsStringAdapter