From: Chris Duncan Date: Sat, 26 Sep 2026 00:32:03 +0000 (-0700) Subject: Retain custom error names when bundling. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3043d0881c9c0b97b34b411b2ce96b3011667f4c;p=nano25519.git Retain custom error names when bundling. --- 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