8000 fix: error.stack is possibly null by hareku · Pull Request #3212 · vuejs/vue-router · GitHub
[go: up one dir, main page]

Skip to content

fix: error.stack is possibly null #3212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/history/errors.js
  • Loading branch information
posva authored May 29, 2020
commit f3a44d9734e8457044195411c4508dedb049324a
6 changes: 0 additions & 6 deletions src/history/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ function createRouterError (from, to, type, me 5C5C ssage) {
error.to = to
error.type = type

if (typeof error.stack === 'string') {
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