MCPcopy Index your code
hub / github.com/nodejs/node / topLevelDomainCallback

Function topLevelDomainCallback

lib/domain.js:138–150  ·  view source on GitHub ↗
(cb, ...args)

Source from the content-addressed store, hash-verified

136}
137
138function 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.

Callers

nothing calls this directly

Calls 3

enterMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…