* Creates an EACCES error for permission denied. * @param {string} syscall The system call name * @param {string} path The path * @returns {Error}
(syscall, path)
| 171 | * @returns {Error} |
| 172 | */ |
| 173 | function createEACCES(syscall, path) { |
| 174 | const err = new UVException({ |
| 175 | errno: UV_EACCES, |
| 176 | syscall, |
| 177 | path, |
| 178 | }); |
| 179 | ErrorCaptureStackTrace(err, createEACCES); |
| 180 | return err; |
| 181 | } |
| 182 | |
| 183 | function createEXDEV(syscall, path) { |
| 184 | const err = new UVException({ |
no outgoing calls
no test coverage detected
searching dependent graphs…