Skip to content

Commit 2d46fd4

Browse files
authored
fix error prototype (#45)
1 parent 8c372cd commit 2d46fd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/internal/FluenceConnection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ export interface FluenceConnectionOptions {
5555
}
5656

5757
export class VersionIncompatibleError extends Error {
58+
__proto__: Error;
5859
constructor() {
60+
const trueProto = new.target.prototype;
5961
super('Current version of JS SDK is incompatible with the connected Fluence node. Please update JS SDK');
62+
this.__proto__ = trueProto;
6063
}
6164
}
6265

0 commit comments

Comments
 (0)