(_this, self, cb, fnargs)
| 378 | |
| 379 | |
| 380 | function intercepted(_this, self, cb, fnargs) { |
| 381 | if (fnargs[0] && fnargs[0] instanceof Error) { |
| 382 | const er = fnargs[0]; |
| 383 | er.domainBound = cb; |
| 384 | er.domainThrown = false; |
| 385 | ObjectDefineProperty(er, 'domain', { |
| 386 | __proto__: null, |
| 387 | configurable: true, |
| 388 | enumerable: false, |
| 389 | value: self, |
| 390 | writable: true, |
| 391 | }); |
| 392 | self.emit('error', er); |
| 393 | return; |
| 394 | } |
| 395 | |
| 396 | self.enter(); |
| 397 | const ret = ReflectApply(cb, _this, ArrayPrototypeSlice(fnargs, 1)); |
| 398 | self.exit(); |
| 399 | |
| 400 | return ret; |
| 401 | } |
| 402 | |
| 403 | |
| 404 | Domain.prototype.intercept = function(cb) { |
no test coverage detected
searching dependent graphs…