FIR JS: add K2 variants of all other JS tests

except tests that are not possible to add without some modifications in
the test infra. See todos on the commented-out test declarations
This commit is contained in:
Ilya Chernikov
2022-08-17 18:32:23 +02:00
parent 5baf4a55c1
commit 78ca733c38
133 changed files with 42615 additions and 147 deletions
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: don't support legacy feature (prefix increment calls getter twice). fail 2: anone1
var inc: String = ""
@@ -1,6 +1,6 @@
// WITH_STDLIB
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status:
// java.lang.StackOverflowError
// at Nat$Companion$invoke$1.next(kt36853_fibonacci.kt:40) ...
@@ -1,5 +1,5 @@
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_K2: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: don't support legacy feature. UNINITIALIZED_PARAMETER y. See KT-49800
tailrec fun foo(x: () -> String? = { y }, y: String = "fail"): String? {
if (y == "start")