Skip to content

Commit

Permalink
Reuse computed module info
Browse files Browse the repository at this point in the history
Fix to re-use the already computed module info rather than re-running it
  • Loading branch information
tommywilkinson authored Dec 4, 2023
1 parent fb925b1 commit 1232c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function prepareStackTraceWithSourceModules(error: Error, frames: CallSite[]): s

const moduleInformation = collectModuleInformation(frames);
if (moduleInformation) {
return originalStack + '\n' + collectModuleInformation(frames);
return originalStack + '\n' + moduleInformation;
}

return originalStack;
Expand Down

0 comments on commit 1232c25

Please sign in to comment.