Native: terminate if cinterop ObjC reference conversion throws exception
To avoid forwarding Obj-C exceptions to Kotlin or vice versa. Otherwise this might lead to a crash or other undesirable behaviour. ^KT-50648 Fixed
This commit is contained in:
committed by
Space
parent
d235fc4dbe
commit
76672a4abf
@@ -0,0 +1,5 @@
|
||||
import objclib.*
|
||||
|
||||
fun main() {
|
||||
getVoidBlockAsId()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
language = Objective-C
|
||||
---
|
||||
id getVoidBlockAsId() {
|
||||
void (^result)(void) = ^{};
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user