We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65d1e02 commit 22b9691Copy full SHA for 22b9691
lib/repl.js
@@ -494,7 +494,7 @@ function REPLServer(prompt,
494
self.writer.options = Object.assign({}, writer.options, { colors: true });
495
}
496
497
- function filterInternalStackFrames(error, structuredStack) {
+ function filterInternalStackFrames(structuredStack) {
498
// Search from the bottom of the call stack to
499
// find the first frame with a null function name
500
if (typeof structuredStack !== 'object')
@@ -509,7 +509,7 @@ function REPLServer(prompt,
509
510
function prepareStackTrace(fn) {
511
return (error, stackFrames) => {
512
- const frames = filterInternalStackFrames(error, stackFrames);
+ const frames = filterInternalStackFrames(stackFrames);
513
if (fn) {
514
return fn(error, frames);
515
0 commit comments