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

Method getStore

lib/internal/async_local_storage/async_hooks.js:138–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137
138 getStore() {
139 if (this.enabled) {
140 const resource = executionAsyncResource();
141 if (!(this.kResourceStore in resource)) {
142 return this.#defaultValue;
143 }
144 return resource[this.kResourceStore];
145 }
146 return this.#defaultValue;
147 }
148
149 withScope(store) {
150 return new RunScope(this, store);

Callers 15

runMethod · 0.95
mainFunction · 0.95
setupExceptionCaptureFunction · 0.45
processNewListenerFunction · 0.45
constructorMethod · 0.45
runBenchmarkFunction · 0.45
runBenchmarkFunction · 0.45
getCLSFunction · 0.45
setCLSFunction · 0.45
wrappedEmitFunction · 0.45
onFinishFunction · 0.45
doReqFunction · 0.45

Calls 1

executionAsyncResourceFunction · 0.85

Tested by 2

testFunction · 0.36
testFunction · 0.36