* Provide source that is understood by one of Node's translators. Handles customization hooks, * if any. * @typedef {{ * format: ModuleFormat, * source: ModuleSource, * responseURL?: string, * isSourceLoadedSynchronously: boolean, * }} LoadResult * @param {string} url
(url, context)
| 779 | * @returns {Promise<LoadResult> | LoadResult}} |
| 780 | */ |
| 781 | load(url, context) { |
| 782 | if (this.isForAsyncLoaderHookWorker) { |
| 783 | // TODO(joyeecheung): invoke the synchronous hooks in the default step on loader thread. |
| 784 | return this.#asyncLoaderHooks.load(url, context); |
| 785 | } |
| 786 | return this.#loadSync(url, context); |
| 787 | } |
| 788 | |
| 789 | /** |
| 790 | * This is the default load step for module.registerHooks(), which incorporates asynchronous hooks |
no test coverage detected