Commit 88b7e1e
committed
Fallback to
WASI does not provide a specific API to retrieve the process name,
so we used `CommandLine.arguments.first` for `ProcessInfo.processName`.
After #1411, `CommandLine.arguments.first` started using platform-specific
APIs to retrieve the process name, but the fallback path with `argv[0]`
was removed. This commit restores that fallback for platforms like WASI.argv[0] for ProcessInfo.processName on platforms without specific APIs.1 parent d1b39d1 commit 88b7e1e
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
0 commit comments