Skip to content

Commit 208594a

Browse files
authored
WASI: Fix Platform.exit (#520)
1 parent 10ee916 commit 208594a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ArgumentParser/Utilities/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension Platform {
8383
#elseif canImport(CRT)
8484
ucrt._exit(code)
8585
#elseif canImport(WASILibc)
86-
exit(code)
86+
WASILibc.exit(code)
8787
#endif
8888
}
8989
}

0 commit comments

Comments
 (0)