File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ const experimentalImportMetaResolve = getOptionValue('--experimental-import-meta
55
66/**
77 * Generate a function to be used as import.meta.resolve for a particular module.
8- * @param {string } defaultParentUrl The default base to use for resolution
8+ * @param {string } defaultParentURL The default base to use for resolution
99 * @param {typeof import('./loader.js').ModuleLoader } loader Reference to the current module loader
10- * @returns {(specifier: string, parentUrl ?: string) => string } Function to assign to import.meta.resolve
10+ * @returns {(specifier: string, parentURL ?: string) => string } Function to assign to import.meta.resolve
1111 */
12- function createImportMetaResolve ( defaultParentUrl , loader ) {
13- return function resolve ( specifier , parentUrl = defaultParentUrl ) {
12+ function createImportMetaResolve ( defaultParentURL , loader ) {
13+ return function resolve ( specifier , parentURL = defaultParentURL ) {
1414 let url ;
1515
1616 try {
17- ( { url } = loader . resolveSync ( specifier , parentUrl ) ) ;
17+ ( { url } = loader . resolveSync ( specifier , parentURL ) ) ;
1818 } catch ( error ) {
1919 if ( error ?. code === 'ERR_UNSUPPORTED_DIR_IMPORT' ) {
2020 ( { url } = error ) ;
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class ModuleLoader {
164164 * string, parentURL: string,
165165 * importAssertions: Record<string, string>
166166 * ) ResolveResult;
167- * register(specifier: string, parentUrl : string): any;
167+ * register(specifier: string, parentURL : string): any;
168168 * forceLoadHooks(): void;
169169 * }
170170 * ```
@@ -318,15 +318,15 @@ class ModuleLoader {
318318 return module . getNamespace ( ) ;
319319 }
320320
321- register ( specifier , parentUrl ) {
321+ register ( specifier , parentURL ) {
322322 if ( ! this . #customizations) {
323323 // `CustomizedModuleLoader` is defined at the bottom of this file and
324324 // available well before this line is ever invoked. This is here in
325325 // order to preserve the git diff instead of moving the class.
326326 // eslint-disable-next-line no-use-before-define
327327 this . setCustomizations ( new CustomizedModuleLoader ( ) ) ;
328328 }
329- return this . #customizations. register ( specifier , parentUrl ) ;
329+ return this . #customizations. register ( specifier , parentURL ) ;
330330 }
331331
332332 /**
You can’t perform that action at this time.
0 commit comments