Help! Is there any way to do make this work in a m...
# javascript
j
Help! Is there any way to do make this work in a multiplatform project that has a JS target?
Copy code
fun <T: TestCase> T.hasAnnotation(annotation: String): Boolean {
    return this::class.annotations.map { it.toString() }.any { it.contains(annotation) }
}
This method works fine on JVM and Native, but gives this error on JS:
Copy code
e: /Users/justin/project/Extensions.kt: (16, 24): Unsupported [This reflection API is not supported yet in JavaScript]
This code only exists in my test target, so I would be comfortable using an experimental setting if one exists...