()
| 2459 | return this[kDispatch](opts, handler); |
| 2460 | } |
| 2461 | let dispatch = this[kDispatch].bind(this); |
| 2462 | for (let i = this[kInterceptors].length - 1; i >= 0; i--) { |
| 2463 | dispatch = this[kInterceptors][i](dispatch); |
| 2464 | } |
| 2465 | this[kInterceptedDispatch] = dispatch; |
| 2466 | return dispatch(opts, handler); |
| 2467 | } |
| 2468 | dispatch(opts, handler) { |
| 2469 | if (!handler || typeof handler !== "object") { |
| 2470 | throw new InvalidArgumentError("handler must be an object"); |
| 2471 | } |
| 2472 | try { |
| 2473 | if (!opts || typeof opts !== "object") { |
| 2474 | throw new InvalidArgumentError("opts must be an object."); |
no test coverage detected