From: Chris Duncan Date: Sat, 30 Nov 2024 06:59:12 +0000 (-0800) Subject: Class reference to static member within static initializer should use 'this'. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=9f010aa7822a23cdcd8714c5c5196f31162770fc;p=libnemo.git Class reference to static member within static initializer should use 'this'. --- diff --git a/src/lib/blake2b.ts b/src/lib/blake2b.ts index 4bc4032..e6073b3 100644 --- a/src/lib/blake2b.ts +++ b/src/lib/blake2b.ts @@ -47,7 +47,7 @@ export class Blake2b { * Multiply them all by 2 to make them offsets into a uint32 buffer, * because this is Javascript and we don't have uint64s */ - static SIGMA82 = new Uint8Array(Blake2b.SIGMA8.map(x => x * 2)) + static SIGMA82 = new Uint8Array(this.SIGMA8.map(x => x * 2)) // reusable parameter_block static parameter_block = new Uint8Array([