diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt index 93e0d5a9659..e099fa69e00 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/CallableReferenceLowering.kt @@ -257,12 +257,12 @@ class CallableReferenceLowering(val context: JsIrBackendContext) : FileLoweringP val cacheName = "${getterFunction.name}_${Namer.KCALLABLE_CACHE_SUFFIX}" val cacheVarSymbol = JsSymbolBuilder.buildVar(getterFunction.descriptor.containingDeclaration, getterFunction.returnType, cacheName, true) - val irCacheNull = JsIrBuilder.buildNull(cacheVarSymbol.descriptor.type) - val irCacheDeclaration = JsIrBuilder.buildVar(cacheVarSymbol, irCacheNull) + val irNull = JsIrBuilder.buildNull(cacheVarSymbol.descriptor.type) + val irCacheDeclaration = JsIrBuilder.buildVar(cacheVarSymbol) val irCacheValue = JsIrBuilder.buildGetValue(cacheVarSymbol) - val irIfCondition = JsIrBuilder.buildCall(context.irBuiltIns.eqeqeqSymbol).apply { + val irIfCondition = JsIrBuilder.buildCall(context.irBuiltIns.eqeqSymbol).apply { putValueArgument(0, irCacheValue) - putValueArgument(1, irCacheNull) + putValueArgument(1, irNull) } val irSetCache = JsIrBuilder.buildSetVariable(cacheVarSymbol, JsIrBuilder.buildGetValue(varSymbol)) val thenStatements = mutableListOf().apply { diff --git a/compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt b/compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt index be9a25b5be8..d73aadaf604 100644 --- a/compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt +++ b/compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR import kotlin.reflect.KProperty class Delegate(val f: (T) -> Int) { diff --git a/compiler/testData/codegen/box/extensionFunctions/kt4228.kt b/compiler/testData/codegen/box/extensionFunctions/kt4228.kt index be18ea57f32..9906d20305f 100644 --- a/compiler/testData/codegen/box/extensionFunctions/kt4228.kt +++ b/compiler/testData/codegen/box/extensionFunctions/kt4228.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A { companion object } diff --git a/compiler/testData/codegen/box/localClasses/kt2700.kt b/compiler/testData/codegen/box/localClasses/kt2700.kt index e1b7b0e6794..3baacf0b21f 100644 --- a/compiler/testData/codegen/box/localClasses/kt2700.kt +++ b/compiler/testData/codegen/box/localClasses/kt2700.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR package a.b interface Test { diff --git a/compiler/testData/codegen/box/typealias/simple.kt b/compiler/testData/codegen/box/typealias/simple.kt index 9ea176e9845..a5cd67b9ad7 100644 --- a/compiler/testData/codegen/box/typealias/simple.kt +++ b/compiler/testData/codegen/box/typealias/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR typealias S = String typealias SF = (T) -> S diff --git a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt index bdc2618ea4f..74769db72a7 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/checkStaticLambdaClassIsPresent.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // NO_CHECK_LAMBDA_INLINING // FILE: 1.kt package test diff --git a/js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt b/js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt index 1ce6f65fb78..59d168d9e70 100644 --- a/js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt +++ b/js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/expression/misc/extensionLiteralCreatedAtPackageLevel.kt b/js/js.translator/testData/box/expression/misc/extensionLiteralCreatedAtPackageLevel.kt index 04dd4f88fb5..6400b6b0131 100644 --- a/js/js.translator/testData/box/expression/misc/extensionLiteralCreatedAtPackageLevel.kt +++ b/js/js.translator/testData/box/expression/misc/extensionLiteralCreatedAtPackageLevel.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 package foo diff --git a/js/js.translator/testData/box/expression/misc/packagePropertyCalledAsFun.kt b/js/js.translator/testData/box/expression/misc/packagePropertyCalledAsFun.kt index 282cd116516..56ef691ac7c 100644 --- a/js/js.translator/testData/box/expression/misc/packagePropertyCalledAsFun.kt +++ b/js/js.translator/testData/box/expression/misc/packagePropertyCalledAsFun.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1111 package foo diff --git a/js/js.translator/testData/box/inline/rootConstructor.kt b/js/js.translator/testData/box/inline/rootConstructor.kt index b0d1dbaaeb7..3746fe3fa61 100644 --- a/js/js.translator/testData/box/inline/rootConstructor.kt +++ b/js/js.translator/testData/box/inline/rootConstructor.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 /* * Copy of JVM-backend test