From a04c953fcb6fcbd3cf29fbea1c391af64a839925 Mon Sep 17 00:00:00 2001 From: sethkfman <10342624+sethkfman@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:15:25 -0700 Subject: [PATCH] chore: remove incompatible Hermes serialization code This PR removes the serialization of the error stack which is not supported by the Hermes engine and cause a crash on applications running. --- src/classes.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/classes.ts b/src/classes.ts index 5bf6426..7dc8025 100644 --- a/src/classes.ts +++ b/src/classes.ts @@ -75,11 +75,7 @@ export class JsonRpcError< serialized.data.cause = serializeCause(this.data.cause); } } - - if (this.stack) { - serialized.stack = this.stack; - } - + return serialized; }