(fn, thisArg, ...args)
| 217 | } |
| 218 | |
| 219 | runInAsyncScope(fn, thisArg, ...args) { |
| 220 | const asyncId = this[async_id_symbol]; |
| 221 | emitBefore(asyncId, this[trigger_async_id_symbol], this); |
| 222 | |
| 223 | const contextFrame = this[contextFrameSymbol]; |
| 224 | const prior = AsyncContextFrame.exchange(contextFrame); |
| 225 | try { |
| 226 | return ReflectApply(fn, thisArg, args); |
| 227 | } finally { |
| 228 | AsyncContextFrame.set(prior); |
| 229 | if (hasAsyncIdStack()) |
| 230 | emitAfter(asyncId); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | emitDestroy() { |
| 235 | if (this[destroyedSymbol] !== undefined) { |
no test coverage detected