(fileOpPromise, closeFunc)
| 1077 | } |
| 1078 | |
| 1079 | async function handleFdClose(fileOpPromise, closeFunc) { |
| 1080 | return PromisePrototypeThen( |
| 1081 | fileOpPromise, |
| 1082 | (result) => PromisePrototypeThen(closeFunc(), () => result), |
| 1083 | (opError) => |
| 1084 | PromisePrototypeThen( |
| 1085 | closeFunc(), |
| 1086 | () => PromiseReject(opError), |
| 1087 | (closeError) => PromiseReject(aggregateTwoErrors(closeError, opError)), |
| 1088 | ), |
| 1089 | ); |
| 1090 | } |
| 1091 | |
| 1092 | async function handleFdSync(fileOpPromise, handle) { |
| 1093 | return PromisePrototypeThen( |
no test coverage detected
searching dependent graphs…