Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lib: Remove unused param for filterInternalStackFrames
Actually we don't refer the `error` directly in
`filterInternalStackFrames`, so just remove it anyway.
  • Loading branch information
MaleDong committed Aug 11, 2018
commit 2a33764b1922818ab9f6d6bdf76cf972462b02da
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