Skip to content

Commit fd2e330

Browse files
committed
nit
1 parent d69398a commit fd2e330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/modules/run_main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ function executeUserEntryPoint(main = process.argv[1]) {
174174
const source = cjsLoader.entryPointSource;
175175
const { shouldRetryAsESM } = require('internal/modules/helpers');
176176
retryAsESM = shouldRetryAsESM(error.message, source);
177-
// In case the entry point is a large file, such as a bundle, release it from memory since we're done with it.
177+
// In case the entry point is a large file, such as a bundle,
178+
// ensure no further references can prevent it being garbage-collected.
178179
cjsLoader.entryPointSource = undefined;
179180
if (!retryAsESM) {
180181
const { enrichCJSError } = require('internal/modules/esm/translators');

0 commit comments

Comments
 (0)