File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,12 @@ const mainModule: string = `${
5
5
} /`;
6
6
7
7
/** Gets the module */
8
- function getModule ( filename : string | undefined , base ?: string ) : string | undefined {
8
+ function getModule ( filename : string | undefined ) : string | undefined {
9
9
if ( ! filename ) {
10
10
return ;
11
11
}
12
12
13
- if ( ! base ) {
14
- // eslint-disable-next-line no-param-reassign
15
- base = mainModule ;
16
- }
13
+ const base = mainModule ;
17
14
18
15
// It's specifically a module
19
16
const file = basename ( filename , '.js' ) ;
@@ -113,7 +110,7 @@ export const node: StackLineParser = (line: string) => {
113
110
const in_app = ! isInternal && filename !== undefined && ! filename . includes ( 'node_modules/' ) ;
114
111
115
112
return {
116
- filename : lineMatch [ 2 ] ,
113
+ filename,
117
114
module : getModule ( filename ) ,
118
115
function : fn ,
119
116
lineno : parseInt ( lineMatch [ 3 ] , 10 ) || undefined ,
You can’t perform that action at this time.
0 commit comments