[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:
Anton Bannykh
2020-09-17 17:04:31 +03:00
committed by TeamCityServer
parent 984e912f8d
commit 8b18818bcc
@@ -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
}