({ target, method })
| 123 | |
| 124 | let sendMakeCallbackDeprecation = false; |
| 125 | function emitMakeCallbackDeprecation({ target, method }) { |
| 126 | if (!sendMakeCallbackDeprecation) { |
| 127 | process.emitWarning( |
| 128 | 'Using a domain property in MakeCallback is deprecated. Use the ' + |
| 129 | 'async_context variant of MakeCallback or the AsyncResource class ' + |
| 130 | 'instead. ' + |
| 131 | `(Triggered by calling ${method?.name || '<anonymous>'} ` + |
| 132 | `on ${target?.constructor?.name}.)`, |
| 133 | 'DeprecationWarning', 'DEP0097'); |
| 134 | sendMakeCallbackDeprecation = true; |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | function topLevelDomainCallback(cb, ...args) { |
| 139 | const domain = this.domain; |
no outgoing calls
no test coverage detected
searching dependent graphs…