@@ -143,7 +143,7 @@ class Hooks {
143143 * @param {string } urlOrSpecifier
144144 * @param {string } parentURL
145145 * @param {any } [data] Arbitrary data to be passed from the custom
146- * loader (user-land) to the worker.
146+ * loader (user-land) to the worker.
147147 */
148148 async register ( urlOrSpecifier , parentURL , data , isInternal ) {
149149 const cascadedLoader = require ( 'internal/modules/esm/loader' ) . getOrInitializeCascadedLoader ( ) ;
@@ -162,7 +162,7 @@ class Hooks {
162162 * @param {string } url Custom loader specifier
163163 * @param {Record<string, unknown> } exports
164164 * @param {any } [data] Arbitrary data to be passed from the custom loader (user-land)
165- * to the worker.
165+ * to the worker.
166166 * @returns {any | Promise<any> } User data, ignored unless it's a promise, in which case it will be awaited.
167167 */
168168 addCustomLoader ( url , exports , data ) {
@@ -190,10 +190,10 @@ class Hooks {
190190 * hooks starts at the top and each call to `nextResolve()` moves down 1 step
191191 * until it reaches the bottom or short-circuits.
192192 * @param {string } originalSpecifier The specified URL path of the module to
193- * be resolved.
193+ * be resolved.
194194 * @param {string } [parentURL] The URL path of the module's parent.
195195 * @param {ImportAttributes } [importAttributes] Attributes from the import
196- * statement or expression.
196+ * statement or expression.
197197 * @returns {Promise<{ format: string, url: URL['href'] }> }
198198 */
199199 async resolve (
@@ -688,18 +688,18 @@ function pluckHooks({
688688 * chain, and generate and supply the `next<HookName>` argument to the custom
689689 * hook.
690690 * @param {KeyedHook } current The (currently) first hook in the chain (this shifts
691- * on every call).
691+ * on every call).
692692 * @param {object } meta Properties that change as the current hook advances
693- * along the chain.
693+ * along the chain.
694694 * @param {boolean } meta.chainFinished Whether the end of the chain has been
695- * reached AND invoked.
695+ * reached AND invoked.
696696 * @param {string } meta.hookErrIdentifier A user-facing identifier to help
697- * pinpoint where an error occurred. Ex "file:///foo.mjs 'resolve'".
697+ * pinpoint where an error occurred. Ex "file:///foo.mjs 'resolve'".
698698 * @param {string } meta.hookName The kind of hook the chain is (ex 'resolve')
699699 * @param {boolean } meta.shortCircuited Whether a hook signaled a short-circuit.
700700 * @param {function(string, unknown): void } validate A wrapper function
701- * containing all validation of a custom loader hook's intermediary output. Any
702- * validation within MUST throw.
701+ * containing all validation of a custom loader hook's intermediary output. Any
702+ * validation within MUST throw.
703703 * @returns {Function } The next hook in the chain.
704704 */
705705function nextHookFactory ( current , meta , { validateArgs, validateOutput } ) {
0 commit comments