File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,12 @@ const mainModule: string = `${
55} /`;
66
77/** Gets the module */
8- function getModule ( filename : string | undefined , base ?: string ) : string | undefined {
8+ function getModule ( filename : string | undefined ) : string | undefined {
99 if ( ! filename ) {
1010 return ;
1111 }
1212
13- if ( ! base ) {
14- // eslint-disable-next-line no-param-reassign
15- base = mainModule ;
16- }
13+ const base = mainModule ;
1714
1815 // It's specifically a module
1916 const file = basename ( filename , '.js' ) ;
@@ -113,7 +110,7 @@ export const node: StackLineParser = (line: string) => {
113110 const in_app = ! isInternal && filename !== undefined && ! filename . includes ( 'node_modules/' ) ;
114111
115112 return {
116- filename : lineMatch [ 2 ] ,
113+ filename,
117114 module : getModule ( filename ) ,
118115 function : fn ,
119116 lineno : parseInt ( lineMatch [ 3 ] , 10 ) || undefined ,
You can’t perform that action at this time.
0 commit comments