Skip to content

Commit a0075ed

Browse files
harekuposva
andauthored
fix: remove error.stack modification (#3212)
Error.stack is non standard Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 7e2b9aa commit a0075ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/history/errors.js

-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ function createRouterError (from, to, type, message) {
4848
error.to = to
4949
error.type = type
5050

51-
const newStack = error.stack.split('\n')
52-
newStack.splice(1, 2) // remove 2 last useless calls
53-
error.stack = newStack.join('\n')
5451
return error
5552
}
5653

0 commit comments

Comments
 (0)