KT-2752: refactor generation of FQN in JS. Move backend-independent code to generic code in frontend.

This commit is contained in:
Alexey Andreev
2016-05-25 12:57:31 +03:00
parent ed55923bb0
commit f70b50b6e2
71 changed files with 512 additions and 618 deletions
@@ -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
View File
@@ -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"
}