MCPcopy Index your code
hub / github.com/nodejs/node / #setAsyncLoaderHooks

Method #setAsyncLoaderHooks

lib/internal/modules/esm/loader.js:196–203  ·  view source on GitHub ↗

* Change the currently activate async loader hooks for this module * loader to be the provided `AsyncLoaderHooks`. * * If present, this class customizes its core functionality to the * `AsyncLoaderHooks` object, including registration, loading, and resolving. * There are some responsi

(asyncLoaderHooks)

Source from the content-addressed store, hash-verified

194 * @param {AsyncLoaderHooks} asyncLoaderHooks
195 */
196 #setAsyncLoaderHooks(asyncLoaderHooks) {
197 this.#asyncLoaderHooks = asyncLoaderHooks;
198 if (asyncLoaderHooks) {
199 this.isForAsyncLoaderHookWorker = asyncLoaderHooks.isForAsyncLoaderHookWorker;
200 } else {
201 this.isForAsyncLoaderHookWorker = false;
202 }
203 }
204
205 /**
206 *

Callers 2

constructorMethod · 0.95
registerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected