Skip to content

Commit 0ec4713

Browse files
committed
refactor: suppress usage of setPrototypeOf
1 parent 8910979 commit 0ec4713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/history/errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export class NavigationDuplicated extends Error {
22
constructor () {
33
super('Navigating to current location is not allowed')
4-
Object.setPrototypeOf(this, new.target.prototype)
4+
this.name = this.constructor.name
55
}
66
}

0 commit comments

Comments
 (0)