[K/JS] Change order of exported properties definition for non ES-classes compilation ^KT-60131 Fixed

This commit is contained in:
Artem Kobzar
2023-07-19 14:33:19 +00:00
committed by Space Team
parent dc5660d98c
commit e4bdd3560c
6 changed files with 106 additions and 1 deletions
@@ -245,7 +245,7 @@ class JsClassGenerator(private val irClass: IrClass, val context: JsGenerationCo
}
)
} else {
classBlock.statements += JsExpressionStatement(
classModel.postDeclarationBlock.statements += JsExpressionStatement(
defineProperty(classPrototypeRef, propertyName.ident, getterForwarder, setterForwarder, context.staticContext)
)
}