Skip to content

Commit 22b9691

Browse files
MaleDongrvagg
authored andcommitted
lib: remove unused filterInternalStackFrames param
Actually we don't refer the `error` directly in `filterInternalStackFrames`, so just remove it anyway. PR-URL: #22267 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 65d1e02 commit 22b9691

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/repl.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ function REPLServer(prompt,
494494
self.writer.options=Object.assign({},writer.options,{colors: true});
495495
}
496496

497-
functionfilterInternalStackFrames(error,structuredStack){
497+
functionfilterInternalStackFrames(structuredStack){
498498
// Search from the bottom of the call stack to
499499
// find the first frame with a null function name
500500
if(typeofstructuredStack!=='object')
@@ -509,7 +509,7 @@ function REPLServer(prompt,
509509

510510
functionprepareStackTrace(fn){
511511
return(error,stackFrames)=>{
512-
constframes=filterInternalStackFrames(error,stackFrames);
512+
constframes=filterInternalStackFrames(stackFrames);
513513
if(fn){
514514
returnfn(error,frames);
515515
}

0 commit comments

Comments
 (0)