From: Chris Duncan Date: Sat, 15 Aug 2026 09:50:42 +0000 (-0700) Subject: Type adjustment. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f39fafe63c5c19840ddf9dd96c7db56b76f2f03a;p=nano25519.git Type adjustment. --- diff --git a/src/lib/worker.ts b/src/lib/worker.ts index 175f9ca..bb1d2a4 100644 --- a/src/lib/worker.ts +++ b/src/lib/worker.ts @@ -83,7 +83,7 @@ const nano25519_worker_init = ({ derive, sign, verify }: ReturnType if (typeof message === 'string' && message !== 'divide by zero') { result = message } @@ -179,6 +179,7 @@ function report (msg: { data: Record }): void { // Reconstruct worker when errors occur function reset (): void { console.warn(`nano25519 encountered an error. Reinitializing...`) + starting = undefined worker.terminate() init() }