Skip to content

Commit

Permalink
resolve rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Apr 10, 2024
1 parent 2954732 commit 9f7bb00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,11 @@ Module._load = function(request, parent, isMain) {
// to determine if it's loading or not.
const importedCJSMetadata = importedCJSCache.get(cachedModule);
if (importedCJSMetadata.loading) {
return getExportsForCircularRequire(cachedModule);
const result = getExportsForCircularRequire(cachedModule);

endTimer(logLabel, traceLabel);

return result;
}
importedCJSMetadata.loading = true;
} else {
Expand Down

0 comments on commit 9f7bb00

Please sign in to comment.