* Route VFS async result (Promise) to error-first callback. * @param {Promise|undefined} promise The VFS handler result * @param {Function} callback The error-first callback * @returns {boolean} true if VFS handled, false otherwise
(promise, callback)
| 206 | * @returns {boolean} true if VFS handled, false otherwise |
| 207 | */ |
| 208 | function vfsResult(promise, callback) { |
| 209 | if (promise === undefined) return false; |
| 210 | PromisePrototypeThen(promise, (result) => callback(null, result), callback); |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Route VFS async void result to error-first callback. |
no test coverage detected
searching dependent graphs…