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

Function lookupPublicResource

lib/internal/async_hooks.js:178–186  ·  view source on GitHub ↗
(resource)

Source from the content-addressed store, hash-verified

176}
177
178function lookupPublicResource(resource) {
179 if (typeof resource !== 'object' || resource === null) return resource;
180 // TODO(addaleax): Merge this with owner_symbol and use it across all
181 // AsyncWrap instances.
182 const publicResource = resource[resource_symbol];
183 if (publicResource !== undefined)
184 return publicResource;
185 return resource;
186}
187
188// Emit From Native //
189

Callers 2

executionAsyncResourceFunction · 0.85
emitInitNativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…