(err, cbs)
| 286 | * @param {ErrorCallback[]=} cbs callbacks |
| 287 | */ |
| 288 | const handleError = (err, cbs) => { |
| 289 | this.compiler.hooks.failed.call(err); |
| 290 | this.compiler.cache.beginIdle(); |
| 291 | this.compiler.idle = true; |
| 292 | this.handler(err, /** @type {Stats} */ (stats)); |
| 293 | if (!cbs) { |
| 294 | cbs = this.callbacks; |
| 295 | this.callbacks = []; |
| 296 | } |
| 297 | for (const cb of cbs) cb(err); |
| 298 | }; |
| 299 | |
| 300 | if ( |
| 301 | this.invalid && |