Extract captured stdout from a child-process error, if present, as a string.
(err: unknown)
| 238 | |
| 239 | /** Extract captured stdout from a child-process error, if present, as a string. */ |
| 240 | function execErrorStdout(err: unknown): string | undefined { |
| 241 | if (typeof err !== "object" || err === null || !("stdout" in err)) return undefined; |
| 242 | const stdout = (err as { stdout?: string | Buffer | null }).stdout; |
| 243 | if (stdout == null) return undefined; |
| 244 | return stdout.toString(); |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Run `ldd <chromeBinary>` and report any shared libraries the dynamic linker |
no outgoing calls
no test coverage detected