From bbfff764a4e5931888749a15072f586f058bf1a2 Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Tue, 27 Apr 2021 17:32:29 +0300 Subject: [PATCH] fix error prototype --- src/internal/FluenceConnection.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal/FluenceConnection.ts b/src/internal/FluenceConnection.ts index 10586e35d..09753ba82 100644 --- a/src/internal/FluenceConnection.ts +++ b/src/internal/FluenceConnection.ts @@ -55,8 +55,11 @@ export interface FluenceConnectionOptions { } export class VersionIncompatibleError extends Error { + __proto__: Error; constructor() { + const trueProto = new.target.prototype; super('Current version of JS SDK is incompatible with the connected Fluence node. Please update JS SDK'); + this.__proto__ = trueProto; } }