Skip to content

Commit

Permalink
lib: remove unused filterInternalStackFrames param
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MaleDong authored and rvagg committed Aug 15, 2018
1 parent 9d89b3c commit 8f7e373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function REPLServer(prompt,
self.writer.options = Object.assign({}, writer.options, { colors: true });
}

function filterInternalStackFrames(error, structuredStack) {
function filterInternalStackFrames(structuredStack) {
// Search from the bottom of the call stack to
// find the first frame with a null function name
if (typeof structuredStack !== 'object')
Expand All @@ -509,7 +509,7 @@ function REPLServer(prompt,

function prepareStackTrace(fn) {
return (error, stackFrames) => {
const frames = filterInternalStackFrames(error, stackFrames);
const frames = filterInternalStackFrames(stackFrames);
if (fn) {
return fn(error, frames);
}
Expand Down

0 comments on commit 8f7e373

Please sign in to comment.