[JS IR] Method of any is exported

^KT-44616 fixed
This commit is contained in:
Ilya Goncharov
2021-02-04 16:51:28 +03:00
parent 7b4624aac4
commit 76b124a9c0
2 changed files with 3 additions and 2 deletions
@@ -6,6 +6,7 @@
package org.jetbrains.kotlin.ir.backend.js.export
import org.jetbrains.kotlin.backend.common.ir.isExpect
import org.jetbrains.kotlin.backend.common.ir.isMethodOfAny
import org.jetbrains.kotlin.config.CommonConfigurationKeys
import org.jetbrains.kotlin.descriptors.ClassKind
import org.jetbrains.kotlin.descriptors.DescriptorVisibilities
@@ -406,7 +407,8 @@ private fun shouldDeclarationBeExported(declaration: IrDeclarationWithName, cont
.isNotEmpty()
if (overriddenNonEmpty) {
return declaration.isOverriddenExported(context)
return declaration.isOverriddenExported(context) ||
declaration.isMethodOfAny() // Handle names for special functions
}
}
@@ -19,7 +19,6 @@ import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.types.isNullableAny
import org.jetbrains.kotlin.ir.util.isEffectivelyExternal
import org.jetbrains.kotlin.ir.util.isTopLevelDeclaration
import org.jetbrains.kotlin.ir.util.parentClassOrNull
import org.jetbrains.kotlin.name.Name
fun TODO(element: IrElement): Nothing = TODO(element::class.java.simpleName + " is not supported yet here")