Join Slack
Powered by
BTW I have managed to generate code at runtime for...
# javascript
d
Deactivated User
11/13/2017, 1:32 AM
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
7
Views
Open in Slack
Previous
Next