(candidate: string)
| 180 | } |
| 181 | |
| 182 | async function isExecutable(candidate: string): Promise<boolean> { |
| 183 | try { |
| 184 | await access( |
| 185 | candidate, |
| 186 | process.platform === `win32` |
| 187 | ? fsConstants.F_OK |
| 188 | : fsConstants.F_OK | fsConstants.X_OK |
| 189 | ) |
| 190 | return true |
| 191 | } catch { |
| 192 | return false |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | async function readManagedShim( |
| 197 | candidate: string |
no outgoing calls
no test coverage detected