ObjCExport: prohibit Kotlin exceptions leaking through native code back
If a Kotlin exceptions is thrown out of a native code in ObjCExport (when calling Swift/Obj-C method overriding Kotlin method, or calling Swift/Obj-C block as Kotlin function type), treat this exception as fatal and terminate the process. This could happen if the Kotlin exception leaked from Kotlin to native code before. In other words, when calling Kotlin -> Swift/Obj-C -> Kotlin, if Kotlin exception passes from the last to the first part, terminate. ^KT-50830
This commit is contained in:
committed by
Space
parent
f7a1fa86a9
commit
776154881b
@@ -2617,8 +2617,7 @@ __attribute__((swift_name("ValuesKt")))
|
||||
+ (id<KtTransform>)createTransformDecimalStringToInt __attribute__((swift_name("createTransformDecimalStringToInt()")));
|
||||
+ (BOOL)runUnitBlockBlock:(void (^)(void))block __attribute__((swift_name("runUnitBlock(block:)")));
|
||||
+ (void (^)(void))asUnitBlockBlock:(id _Nullable (^)(void))block __attribute__((swift_name("asUnitBlock(block:)")));
|
||||
+ (BOOL)runNothingBlockBlock:(void (^)(void))block __attribute__((swift_name("runNothingBlock(block:)")));
|
||||
+ (void (^)(void))asNothingBlockBlock:(id _Nullable (^)(void))block __attribute__((swift_name("asNothingBlock(block:)")));
|
||||
+ (void)runNothingBlockBlock:(void (^)(void))block __attribute__((swift_name("runNothingBlock(block:)")));
|
||||
+ (void (^ _Nullable)(void))getNullBlock __attribute__((swift_name("getNullBlock()")));
|
||||
+ (BOOL)isBlockNullBlock:(void (^ _Nullable)(void))block __attribute__((swift_name("isBlockNull(block:)")));
|
||||
+ (BOOL)isFunctionObj:(id _Nullable)obj __attribute__((swift_name("isFunction(obj:)")));
|
||||
|
||||
Reference in New Issue
Block a user