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]) {
178
178
const { shouldRetryAsESM } = internalBinding ( 'contextify' ) ;
179
179
const mainPath = resolvedMain || main ;
180
180
mainURL = pathToFileURL ( mainPath ) . href ;
181
- retryAsESM = shouldRetryAsESM ( error . message , cjsLoader . entryPointSource , mainPath ) ;
181
+ retryAsESM = shouldRetryAsESM ( error . message , cjsLoader . entryPointSource , mainURL ) ;
182
182
// In case the entry point is a large file, such as a bundle,
183
183
// ensure no further references can prevent it being garbage-collected.
184
184
cjsLoader . entryPointSource = undefined ;
Original file line number Diff line number Diff line change @@ -1583,7 +1583,7 @@ static void ContainsModuleSyntax(const FunctionCallbackInfo<Value>& args) {
1583
1583
CHECK (args[1 ]->IsString ());
1584
1584
Local<String> filename = args[1 ].As <String>();
1585
1585
1586
- // Argument 2: resource name (URL for module).
1586
+ // Argument 2: resource name (URL for ES module).
1587
1587
Local<String> resource_name = filename;
1588
1588
if (args[2 ]->IsString ()) {
1589
1589
resource_name = args[2 ].As <String>();
You can’t perform that action at this time.
0 commit comments