From 3043d0881c9c0b97b34b411b2ce96b3011667f4c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 25 Sep 2026 17:32:03 -0700 Subject: [PATCH] Retain custom error names when bundling. --- src/lib/errors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/errors.ts b/src/lib/errors.ts index aaa1011..bfaa2c4 100644 --- a/src/lib/errors.ts +++ b/src/lib/errors.ts @@ -1,9 +1,9 @@ //! SPDX-FileCopyrightText: 2026 Chris Duncan //! SPDX-License-Identifier: GPL-3.0-or-later -export class Nano25519MutexError extends RangeError { } -export class Nano25519TypeError extends TypeError { } -export class Nano25519WasmError extends Error { } +export class Nano25519MutexError extends RangeError { name: string = 'Nano25519MutexError' } +export class Nano25519TypeError extends TypeError { name: string = 'Nano25519TypeError' } +export class Nano25519WasmError extends Error { name: string = 'Nano25519WasmError' } /** * Message text for the codes in `src/assembly/errors.ts`. The numbers are the -- 2.52.0