diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsCommonBackendContext.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsCommonBackendContext.kt index 41b89672245..691db0033bd 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsCommonBackendContext.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsCommonBackendContext.kt @@ -16,10 +16,7 @@ import org.jetbrains.kotlin.descriptors.PropertyDescriptor import org.jetbrains.kotlin.descriptors.SimpleFunctionDescriptor import org.jetbrains.kotlin.incremental.components.NoLookupLocation import org.jetbrains.kotlin.ir.backend.js.utils.isDispatchReceiver -import org.jetbrains.kotlin.ir.declarations.IrClass -import org.jetbrains.kotlin.ir.declarations.IrProperty -import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction -import org.jetbrains.kotlin.ir.declarations.IrValueParameter +import org.jetbrains.kotlin.ir.declarations.* import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol import org.jetbrains.kotlin.ir.types.IrType import org.jetbrains.kotlin.ir.util.SymbolTable diff --git a/compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt b/compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt index 9522735d1aa..cefdb4f447c 100644 --- a/compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt +++ b/compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not diff --git a/compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt b/compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt index 4f48f1cb6aa..930d9af33bc 100644 --- a/compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt +++ b/compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not diff --git a/compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt b/compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt index 6b9a423eb38..4957754b1c8 100644 --- a/compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt +++ b/compiler/testData/codegen/box/casts/mutableCollections/weirdMutableCasts.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not diff --git a/compiler/testData/codegen/box/constants/comparisonTrue.kt b/compiler/testData/codegen/box/constants/comparisonTrue.kt index 86603391ab9..288c41ca0d2 100644 --- a/compiler/testData/codegen/box/constants/comparisonTrue.kt +++ b/compiler/testData/codegen/box/constants/comparisonTrue.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: WASM +// DONT_TARGET_EXACT_BACKEND: WASM // WASM_MUTE_REASON: FLAKY // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt b/compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt index 0674d2e4936..18c742c2d6e 100644 --- a/compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt +++ b/compiler/testData/codegen/box/coroutines/captureMutableLocalVariableInsideCoroutineBlock.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: KOTLIN_TEST_LIB // WITH_RUNTIME // WITH_COROUTINES diff --git a/compiler/testData/codegen/box/inference/builderInference/kt47744.kt b/compiler/testData/codegen/box/inference/builderInference/kt47744.kt index 0fd0ecdd8fa..748a7ce7517 100644 --- a/compiler/testData/codegen/box/inference/builderInference/kt47744.kt +++ b/compiler/testData/codegen/box/inference/builderInference/kt47744.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // !LANGUAGE: +UnrestrictedBuilderInference // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt index 17ca71d7751..13da006308c 100644 --- a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt +++ b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferences.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME // !LANGUAGE: -StrictOnlyInputTypesChecks diff --git a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt index d32a7f4315b..6ab9def3000 100644 --- a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt +++ b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesDontRewriteAtSlice.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME // SKIP_TXT // !DIAGNOSTICS: -CAST_NEVER_SUCCEEDS -UNCHECKED_CAST -UNUSED_PARAMETER -UNUSED_VARIABLE -OPT_IN_USAGE_ERROR -UNUSED_EXPRESSION diff --git a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt index 17ca71d7751..13da006308c 100644 --- a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt +++ b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithCallableReferencesErrorType.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME // !LANGUAGE: -StrictOnlyInputTypesChecks diff --git a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt index 7982f77c2b4..892c83ba9f2 100644 --- a/compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt +++ b/compiler/testData/codegen/box/inference/builderInference/specialCallsWithLambdas.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt b/compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt index 94389180909..60074d829aa 100644 --- a/compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt +++ b/compiler/testData/codegen/box/inference/builderInferenceLeakingVariable.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // Issues: KT-33542, KT-33544 // WITH_RUNTIME // !LANGUAGE: +NewInference diff --git a/compiler/testData/codegen/box/inference/kt35684.kt b/compiler/testData/codegen/box/inference/kt35684.kt index 9c637be62dd..0cb98a66d87 100644 --- a/compiler/testData/codegen/box/inference/kt35684.kt +++ b/compiler/testData/codegen/box/inference/kt35684.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // !LANGUAGE: +NewInference // !OPT_IN: kotlin.RequiresOptIn // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt b/compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt index e45886b24d1..b6d4ea8c3ec 100644 --- a/compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt +++ b/compiler/testData/codegen/box/inference/plusAssignInsideLambda.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME import kotlin.experimental.ExperimentalTypeInference diff --git a/compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt b/compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt index 1abb4271ec7..6169262e158 100644 --- a/compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt +++ b/compiler/testData/codegen/box/inference/suspendExtensionRecevierFromConstraint.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES - // WITH_RUNTIME // !LANGUAGE: +NewInference diff --git a/compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt b/compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt index c0fae530c04..8d3cf94db93 100644 --- a/compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt +++ b/compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt @@ -1,5 +1,8 @@ // Will be executed on JDK 9, 11, 15 // IGNORE_BACKEND: ANDROID +// DONT_TARGET_EXACT_BACKEND: WASM +// WASM_MUTE_REASON: FLAKY + fun test(z: Int): String { val result = "" + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + z + 1.toChar() + diff --git a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt index eb793e0d9a6..2d250e286c0 100644 --- a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt +++ b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversion.kt @@ -1,6 +1,4 @@ // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES // !LANGUAGE: +SuspendConversion // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt index 9ed12c0f0df..d1ead7f52fa 100644 --- a/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt +++ b/compiler/testData/codegen/box/suspendConversion/basicSuspendConversionDefault.kt @@ -1,6 +1,4 @@ // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES // !DIAGNOSTICS: -UNUSED_PARAMETER diff --git a/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt index 5bd643787af..ec2a4726762 100644 --- a/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt +++ b/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt @@ -1,8 +1,6 @@ // !LANGUAGE: +SuspendConversion // IGNORE_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES fun interface SuspendRunnable { suspend fun invoke() diff --git a/compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt b/compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt index 9c9402141d4..454be32d7cf 100644 --- a/compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt +++ b/compiler/testData/codegen/box/suspendConversion/overloadResolutionBySuspendModifier.kt @@ -1,8 +1,6 @@ // !LANGUAGE: +SuspendConversion // !DIAGNOSTICS: -UNUSED_PARAMETER // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES var foo1 = false var foo2 = false diff --git a/compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt b/compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt index 80793bfc381..23362be1de5 100644 --- a/compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt +++ b/compiler/testData/codegen/box/suspendConversion/severalConversionsInOneCall.kt @@ -2,8 +2,6 @@ // !LANGUAGE: +SuspendConversion // !DIAGNOSTICS: -UNUSED_PARAMETER // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES fun foo(f: () -> String, g: suspend () -> String, h: suspend () -> String) {} diff --git a/compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt b/compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt index 13a1734d736..d8940be6cc1 100644 --- a/compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt +++ b/compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt @@ -3,8 +3,6 @@ // !DIAGNOSTICS: -UNUSED_PARAMETER // IGNORE_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: COROUTINES fun useSuspendVararg(vararg sfn: suspend () -> Unit) {} diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index ea45b7197ec..1a44f32b2d6 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -4430,11 +4430,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/constants/comparisonFalse.kt"); } - @TestMetadata("comparisonTrue.kt") - public void testComparisonTrue() throws Exception { - runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt"); - } - @TestMetadata("constValFromAnotherModuleInConsVal.kt") public void testConstValFromAnotherModuleInConsVal() throws Exception { runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt"); @@ -23584,11 +23579,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest runTest("compiler/testData/codegen/box/strings/concatDynamicWithConstants.kt"); } - @TestMetadata("concatDynamicWithSpecialSymbols.kt") - public void testConcatDynamicWithSpecialSymbols() throws Exception { - runTest("compiler/testData/codegen/box/strings/concatDynamicWithSpecialSymbols.kt"); - } - @TestMetadata("constInStringTemplate.kt") public void testConstInStringTemplate() throws Exception { runTest("compiler/testData/codegen/box/strings/constInStringTemplate.kt");