Skip to content

Commit 60a5c58

Browse files
Avoid using trap handler for WASI environment
1 parent 91d4a85 commit 60a5c58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/private/StdlibUnittest/StdlibUnittest.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,9 @@ func _childProcess() {
886886
#if SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY
887887
@inline(never)
888888
func _childProcessAsync() async {
889+
#if !os(WASI)
889890
_installTrapInterceptor()
891+
#endif
890892

891893
#if _runtime(_ObjC)
892894
objc_setUncaughtExceptionHandler {

0 commit comments

Comments
 (0)