Skip to content

Commit 22b9691

Browse files
MaleDongrvagg
MaleDong
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 65d1e02 commit 22b9691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/repl.js

+2-2
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-
function filterInternalStackFrames(error, structuredStack) {
497+
function filterInternalStackFrames(structuredStack) {
498498
// Search from the bottom of the call stack to
499499
// find the first frame with a null function name
500500
if (typeof structuredStack !== 'object')
@@ -509,7 +509,7 @@ function REPLServer(prompt,
509509

510510
function prepareStackTrace(fn) {
511511
return (error, stackFrames) => {
512-
const frames = filterInternalStackFrames(error, stackFrames);
512+
const frames = filterInternalStackFrames(stackFrames);
513513
if (fn) {
514514
return fn(error, frames);
515515
}

0 commit comments

Comments
 (0)