Ok, I have an extra weird question. How can I do r...
# javascript
y
Ok, I have an extra weird question. How can I do reflection on kotlin JS backend from a kotlin JVM project… ? (I generate some kt code from webidl (parsed with antlr). So it’s a JVM kotlin project. While, I generate this, I want to know if some type already exist in the kotlin js library. For exemple, the type
org.w3c.dom.DOMTokenList
is provided. If we were pure java, I would use
URLClassLoader
+
Class.forName
to check if a type exists, but here the jar contains only
.js
files.)