[WASM] Implementation typeOf support
This commit is contained in:
committed by
TeamCityServer
parent
39a389c49a
commit
ee7f4c7278
+6
-2
@@ -39,8 +39,12 @@ class JsReflectionAPICallChecker(
|
||||
override val isWholeReflectionApiAvailable: Boolean
|
||||
get() = false
|
||||
|
||||
override fun isAllowedReflectionApi(descriptor: CallableDescriptor, containingClass: ClassDescriptor): Boolean {
|
||||
return super.isAllowedReflectionApi(descriptor, containingClass) ||
|
||||
override fun isAllowedReflectionApi(
|
||||
descriptor: CallableDescriptor,
|
||||
containingClass: ClassDescriptor,
|
||||
context: CallCheckerContext
|
||||
): Boolean {
|
||||
return super.isAllowedReflectionApi(descriptor, containingClass, context) ||
|
||||
containingClass.fqNameSafe in ADDITIONAL_ALLOWED_CLASSES ||
|
||||
descriptor.name.asString() == "findAssociatedObject"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user