Skip to content

Commit

Permalink
fix: remove error.stack modification (#3212)
Browse files Browse the repository at this point in the history
Error.stack is non standard

Co-authored-by: Eduardo San Martin Morote <[email protected]>
  • Loading branch information
hareku and posva authored May 29, 2020
1 parent 7e2b9aa commit a0075ed
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/history/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ function createRouterError (from, to, type, message) {
error.to = to
error.type = type

const newStack = error.stack.split('\n')
newStack.splice(1, 2) // remove 2 last useless calls
error.stack = newStack.join('\n')
return error
}

Expand Down

0 comments on commit a0075ed

Please sign in to comment.