Skip to content

Commit 54e27a6

Browse files
harekuaradjdi
authored andcommitted
fix: remove error.stack modification (vuejs#3212)
Error.stack is non standard Co-authored-by: Eduardo San Martin Morote <[email protected]> This reverts commit beca9d2.
1 parent 7e2b9aa commit 54e27a6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: 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)