mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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 <admin@stephenbelanger.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
2dfd758db9
commit
e739ffcaaa
1 file changed
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user