From e739ffcaaafe8777710fbd2f4edf6161b4756709 Mon Sep 17 00:00:00 2001 From: RonGamzu <37371774+RonGamzu@users.noreply.github.com> Date: Wed, 27 May 2026 12:33:51 +0300 Subject: [PATCH] lib: fix typos in esm loader comments Signed-off-by: RonGamzu <37371774+RonGamzu@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/63465 Reviewed-By: Stephen Belanger Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- lib/internal/modules/esm/loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index 1f2e7eeb4b6..d1124c2464f 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -371,8 +371,8 @@ class ModuleLoader { let job = this.loadCache.get(url, kImplicitTypeAttribute); // This module job is already created: // 1. If it was loaded by `require()` before, at this point the instantiation - // is already completed and we can check the whether it is in a cycle - // (in that case the module status is kEvaluaing), and whether the + // is already completed and we can check whether it is in a cycle + // (in that case the module status is kEvaluating), and whether the // required graph is synchronous. // 2. If it was loaded by `import` before, only allow it if it's already evaluated // to forbid cycles. @@ -380,7 +380,7 @@ class ModuleLoader { // synchronously so that any previously imported synchronous graph is already // evaluated at this point. // TODO(joyeecheung): add something similar to CJS loader's requireStack to help - // debugging the the problematic links in the graph for import. + // debugging the problematic links in the graph for import. debug('importSyncForRequire', parent?.filename, '->', filename, job); if (job !== undefined) { mod[kRequiredModuleSymbol] = job.module;