BTW I have managed to generate code at runtime for...
# javascript
d
BTW I have managed to generate code at runtime for JS and JVM using KotlinCommon. I have created the dynarek library: https://github.com/korlibs/dynarek/blob/master/dynarek/common/src/test/kotlin/com/soywiz/dynarek/IntegrationTests.kt The trick to solve js mangling / jvm setters/getters was
@JsName
and
@JvmFields
like this: https://github.com/korlibs/dynarek/blob/master/dynarek/common/src/test/kotlin/com/soywiz/dynarek/State.kt