(err, result)
| 2432 | : proxy |
| 2433 | |
| 2434 | function proxy(err, result) { |
| 2435 | if (proxy.count <= 0) { |
| 2436 | throw new Error('after called too many times') |
| 2437 | } |
| 2438 | --proxy.count |
| 2439 | |
| 2440 | // after first error, rest are passed to err_cb |
| 2441 | if (err) { |
| 2442 | bail = true |
| 2443 | callback(err) |
| 2444 | // future error callbacks will go to error handler |
| 2445 | callback = err_cb |
| 2446 | } else if (proxy.count === 0 && !bail) { |
| 2447 | callback(null, result) |
| 2448 | } |
| 2449 | } |
| 2450 | } |
| 2451 | |
| 2452 | function noop() {} |
nothing calls this directly
no test coverage detected