Skip to content

Commit 1232c25

Browse files
Reuse computed module info
Fix to re-use the already computed module info rather than re-running it
1 parent fb925b1 commit 1232c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function prepareStackTraceWithSourceModules(error: Error, frames: CallSite[]): s
5959

6060
const moduleInformation = collectModuleInformation(frames);
6161
if (moduleInformation) {
62-
return originalStack + '\n' + collectModuleInformation(frames);
62+
return originalStack + '\n' + moduleInformation;
6363
}
6464

6565
return originalStack;

0 commit comments

Comments
 (0)