diff --git a/compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt b/compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt index fd5907a6826..b8a415aa018 100644 --- a/compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt +++ b/compiler/testData/codegen/box/properties/backingField/backingFieldVisibility.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM class A { val a: Number diff --git a/compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt b/compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt index 5515b133585..7c5e5f9f4f0 100644 --- a/compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt +++ b/compiler/testData/codegen/box/properties/backingField/backingFieldWithSmartTypeParameters.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM // WITH_STDLIB val items: List diff --git a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt index a4ceea94035..faee70dd44e 100644 --- a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt +++ b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField1.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM class Base { val x: CharSequence diff --git a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt index ad557624851..088f3e44026 100644 --- a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt +++ b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField2.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM class Base { val x: CharSequence diff --git a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt index 10a752a263e..67cab3838b3 100644 --- a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt +++ b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField3.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM class Base { val x: CharSequence diff --git a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt index 3161ac76fd1..dd6564902c6 100644 --- a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt +++ b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField4.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM class Base { val x: CharSequence diff --git a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt index 1a85a827e32..3276b4a2c0e 100644 --- a/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt +++ b/compiler/testData/codegen/box/properties/backingField/charSequenceWithBackingField5.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM open class Base { open val x: CharSequence = "BASE" diff --git a/compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt b/compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt index 69eef570b08..9664279eb43 100644 --- a/compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt +++ b/compiler/testData/codegen/box/properties/backingField/explicitBackingFieldInAnonymous.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM interface I { val number: Number diff --git a/compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt b/compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt index 84f7a0e3149..ea1d74e5149 100644 --- a/compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt +++ b/compiler/testData/codegen/box/properties/backingField/getterReturnTypeWithBackingField.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM interface Storage { val s: String diff --git a/compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt b/compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt index 4e01f2163e8..f9988184406 100644 --- a/compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt +++ b/compiler/testData/codegen/box/properties/backingField/independentBackingFieldType.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM fun createString() = "AAA" + "BBB" diff --git a/compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt b/compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt index da98e0ca42e..cad5cef50e7 100644 --- a/compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt +++ b/compiler/testData/codegen/box/properties/backingField/lateinitBackingFields.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM var that: Int lateinit field: String diff --git a/compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt b/compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt index 3f2e192d8c1..9494e67b82e 100644 --- a/compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt +++ b/compiler/testData/codegen/box/properties/backingField/overriddenPropertiesWithExplicitBackingFields.kt @@ -1,5 +1,8 @@ // TARGET_BACKEND: JVM_IR -// IGNORE_BACKEND_K1: JVM_IR +// TARGET_BACKEND: JS_IR +// TARGET_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: WASM +// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM open class A { open var it: Number diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt index adb10a9429c..4e67ab1ba8b 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt @@ -19,6 +19,7 @@ import org.jetbrains.kotlin.test.builders.* import org.jetbrains.kotlin.test.directives.DiagnosticsDirectives import org.jetbrains.kotlin.test.directives.DiagnosticsDirectives.DIAGNOSTICS import org.jetbrains.kotlin.test.directives.JsEnvironmentConfigurationDirectives +import org.jetbrains.kotlin.test.directives.LanguageSettingsDirectives import org.jetbrains.kotlin.test.frontend.classic.handlers.ClassicDiagnosticsHandler import org.jetbrains.kotlin.test.frontend.fir.handlers.FirDiagnosticsHandler import org.jetbrains.kotlin.test.model.* @@ -107,6 +108,12 @@ abstract class AbstractJsBlackBoxCodegenTestBase