[JS IR] add base class to the $metadata$.interfaces list
This is needed for better compatibility with the old BE. Some code in Space relies on the $metadata$ format.
This commit is contained in:
committed by
TeamCityServer
parent
984e912f8d
commit
8b18818bcc
+1
-1
@@ -247,7 +247,7 @@ class JsClassGenerator(private val irClass: IrClass, val context: JsGenerationCo
|
||||
val symbol = it.classifierOrFail as IrClassSymbol
|
||||
val isFunctionType = it.run { isFunctionOrKFunction() || isSuspendFunctionOrKFunction() }
|
||||
// TODO: make sure that there is a test which breaks when isExternal is used here instead of isEffectivelyExternal
|
||||
if (symbol.isInterface && !isFunctionType && !symbol.isEffectivelyExternal) {
|
||||
if (/*symbol.isInterface && */!it.isAny() && !isFunctionType && !symbol.isEffectivelyExternal) {
|
||||
JsNameRef(context.getNameForClass(symbol.owner))
|
||||
} else null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user