GeezerVison is showing github.com — lib: remove unused filterInternalStackFrames param · nodejs/node@8f7e373
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/repl.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -494,7 +494,7 @@ function REPLServer(prompt, |
494 | 494 | self.writer.options = Object.assign({}, writer.options, { colors: true }); |
495 | 495 | } |
496 | 496 |
|
497 | | - function filterInternalStackFrames(error, structuredStack) { |
| 497 | + function filterInternalStackFrames(structuredStack) { |
498 | 498 | // Search from the bottom of the call stack to |
499 | 499 | // find the first frame with a null function name |
500 | 500 | if (typeof structuredStack !== 'object') |
@@ -509,7 +509,7 @@ function REPLServer(prompt, |
509 | 509 |
|
510 | 510 | function prepareStackTrace(fn) { |
511 | 511 | return (error, stackFrames) => { |
512 | | - const frames = filterInternalStackFrames(error, stackFrames); |
| 512 | + const frames = filterInternalStackFrames(stackFrames); |
513 | 513 | if (fn) { |
514 | 514 | return fn(error, frames); |
515 | 515 | } |
|