File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ function executeUserEntryPoint(main = process.argv[1]) {
178178 const { shouldRetryAsESM } = internalBinding ( 'contextify' ) ;
179179 const mainPath = resolvedMain || main ;
180180 mainURL = pathToFileURL ( mainPath ) . href ;
181- retryAsESM = shouldRetryAsESM ( error . message , cjsLoader . entryPointSource , mainPath ) ;
181+ retryAsESM = shouldRetryAsESM ( error . message , cjsLoader . entryPointSource , mainURL ) ;
182182 // In case the entry point is a large file, such as a bundle,
183183 // ensure no further references can prevent it being garbage-collected.
184184 cjsLoader . entryPointSource = undefined ;
Original file line number Diff line number Diff line change @@ -1583,7 +1583,7 @@ static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) {
15831583 CHECK (args[1 ]->IsString ());
15841584 Local<String> filename = args[1 ].As <String>();
15851585
1586- // Argument 2: resource name (URL for module).
1586+ // Argument 2: resource name (URL for ES module).
15871587 Local<String> resource_name = filename;
15881588 if (args[2 ]->IsString ()) {
15891589 resource_name = args[2 ].As <String>();
You can’t perform that action at this time.
0 commit comments