Skip to content

Commit 33d4d84

Browse files
author
Michele Olivo
committed
Added 'mode' as optional parameter when called printStackTrace(options) to improve usability in a testing environment.
1 parent 91de59b commit 33d4d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stacktrace.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
*/
2727
function printStackTrace(options) {
2828
options = options || {guess: true};
29-
var ex = options.e || null, guess = !!options.guess;
30-
var p = new printStackTrace.implementation(), result = p.run(ex);
29+
var ex = options.e || null, guess = !!options.guess, mode = options.mode || null;
30+
var p = new printStackTrace.implementation(), result = p.run(ex, mode);
3131
return (guess) ? p.guessAnonymousFunctions(result) : result;
3232
}
3333

0 commit comments

Comments
 (0)