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:
Svyatoslav Scherbina
2022-02-03 14:04:28 +03:00
committed by Space
parent d235fc4dbe
commit 76672a4abf
4 changed files with 28 additions and 2 deletions
@@ -0,0 +1,5 @@
import objclib.*
fun main() {
getVoidBlockAsId()
}
@@ -0,0 +1,6 @@
language = Objective-C
---
id getVoidBlockAsId() {
void (^result)(void) = ^{};
return result;
}