Revert "[JS IR] [runtime] Remove valueOf method from Long"

This reverts commit e13b6b2a90.

The significance of the breakage caused by the removal of `valueOf`
was underestimated.

#KT-50202 Open
This commit is contained in:
Sergej Jaskiewicz
2022-01-14 20:10:08 +03:00
committed by Space
parent bc3157162d
commit ceb744b53b
9 changed files with 184 additions and 51 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ fun testKt14013() {
if (testUtils.isLegacyBackend()) {
assertEquals(",1;[...];,1;", pullLog(), "testKt14013")
} else {
assertEquals(",1;[...];[...];", pullLog(), "testKt14013")
assertEquals("[...];[...];[...];", pullLog(), "testKt14013")
}
}
@@ -74,7 +74,7 @@ fun box(): String {
if (testUtils.isLegacyBackend()) {
assertEquals("1,2,3;1,2,3;[...];", pullLog(), "anyValueToString")
} else {
assertEquals("[...];1,2,3;1,2,3;", pullLog(), "anyValueToString")
assertEquals("[...];[...];[...];", pullLog(), "anyValueToString")
}
return "OK"