We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8910979 commit 0ec4713Copy full SHA for 0ec4713
src/history/errors.js
@@ -1,6 +1,6 @@
1
export class NavigationDuplicated extends Error {
2
constructor () {
3
super('Navigating to current location is not allowed')
4
- Object.setPrototypeOf(this, new.target.prototype)
+ this.name = this.constructor.name
5
}
6
0 commit comments