[WASM] Fix interop adapter for long strings

This commit is contained in:
Igor Yakovlev
2022-06-27 21:21:15 +02:00
committed by teamcity
parent 6e75e4a56e
commit 6f88e9b16f
12 changed files with 136 additions and 71 deletions
@@ -0,0 +1,19 @@
// FILE: externals.js
function id(str) {
return str
}
// FILE: externals.kt
external fun id(str: String): String
fun box(): String {
var x = "1234567890"
for (i in 1 until 20) {
x += x
val stringFromJs = id(x)
if (!stringFromJs.equals(x)) return "FAIL"
}
return "OK"
}