(interceptor)
| 161 | } |
| 162 | |
| 163 | intercept(interceptor) { |
| 164 | this._resetCompilation(); |
| 165 | this.interceptors.push(Object.assign({}, interceptor)); |
| 166 | if (interceptor.register) { |
| 167 | for (let i = 0; i < this.taps.length; i++) { |
| 168 | this.taps[i] = interceptor.register(this.taps[i]); |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | _resetCompilation() { |
| 174 | this.call = this._call; |