Skip to content

Commit 12c5154

Browse files
RonGamzusxa
authored andcommitted
lib: fix typos in esm loader comments
Signed-off-by: RonGamzu <37371774+RonGamzu@users.noreply.github.com> PR-URL: #63465 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 84d0516 commit 12c5154

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/internal/modules/esm/loader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,16 @@ class ModuleLoader {
286286
let job = this.loadCache.get(url, kImplicitTypeAttribute);
287287
// This module job is already created:
288288
// 1. If it was loaded by `require()` before, at this point the instantiation
289-
// is already completed and we can check the whether it is in a cycle
290-
// (in that case the module status is kEvaluaing), and whether the
289+
// is already completed and we can check whether it is in a cycle
290+
// (in that case the module status is kEvaluating), and whether the
291291
// required graph is synchronous.
292292
// 2. If it was loaded by `import` before, only allow it if it's already evaluated
293293
// to forbid cycles.
294294
// TODO(joyeecheung): ensure that imported synchronous graphs are evaluated
295295
// synchronously so that any previously imported synchronous graph is already
296296
// evaluated at this point.
297297
// TODO(joyeecheung): add something similar to CJS loader's requireStack to help
298-
// debugging the the problematic links in the graph for import.
298+
// debugging the problematic links in the graph for import.
299299
debug('importSyncForRequire', parent?.filename, '->', filename, job);
300300
if (job !== undefined) {
301301
mod[kRequiredModuleSymbol] = job.module;

0 commit comments

Comments
 (0)