]> zoso.dev Git - libnemo.git/commitdiff
Class reference to static member within static initializer should use 'this'.
authorChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 06:59:12 +0000 (22:59 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 06:59:12 +0000 (22:59 -0800)
src/lib/blake2b.ts

index 4bc403251c038e51af7b02d991bbfedfa17f031b..e6073b349d574e1d12c4eb7165dcbec6cd8fb6ef 100644 (file)
@@ -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([