KT-2752: refactor generation of FQN in JS. Move backend-independent code to generic code in frontend.
This commit is contained in:
@@ -19,8 +19,8 @@ fun box(): String {
|
||||
|
||||
if (foo + bar != OK) return "$foo + $bar != $OK"
|
||||
|
||||
val actualAsString = funToString("actual")
|
||||
val expectedAsString = funToString("expected")
|
||||
val actualAsString = funToString("actual_0")
|
||||
val expectedAsString = funToString("expected_0")
|
||||
if (actualAsString != expectedAsString) return "$actualAsString != $expectedAsString"
|
||||
if (actual("asd", "12345") != "asd12345") return "${actual("asd", "12345")} != \"asd12345\""
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@ function A(v) {
|
||||
}
|
||||
|
||||
function nativeBox(b) {
|
||||
return b.bar(new A("foo"), function(i, s) { return "" + this.v + s + i })
|
||||
return b.bar_0(new A("foo"), function(i, s) { return "" + this.v + s + i })
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ fun box(): String {
|
||||
|
||||
val b: dynamic = object {val bar = ""}
|
||||
assertEquals(b.foo, undefined)
|
||||
assertNotEquals(b.bar, undefined)
|
||||
assertNotEquals(b.bar_0, undefined)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user