(cb, ...args)
| 136 | } |
| 137 | |
| 138 | function topLevelDomainCallback(cb, ...args) { |
| 139 | const domain = this.domain; |
| 140 | if (exports.active && domain) |
| 141 | emitMakeCallbackDeprecation({ target: this, method: cb }); |
| 142 | |
| 143 | if (domain) |
| 144 | domain.enter(); |
| 145 | const ret = ReflectApply(cb, this, args); |
| 146 | if (domain) |
| 147 | domain.exit(); |
| 148 | |
| 149 | return ret; |
| 150 | } |
| 151 | |
| 152 | // It's possible to enter one domain while already inside |
| 153 | // another one. The stack is each entered domain. |
nothing calls this directly
no test coverage detected
searching dependent graphs…