Skip to content

Commit

Permalink
Merge pull request #65 from jeetiss/const-enums
Browse files Browse the repository at this point in the history
use const enums
  • Loading branch information
paulmillr authored Jun 25, 2023
2 parents b7ef21e + 58a7764 commit 4abac2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/argon2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { blake2b } from './blake2b.js';
import u64 from './_u64.js';

// Experimental Argon2 RFC 9106 implementation. It may be removed at any time.
enum Types {
const enum Types {
Argond2d = 0,
Argon2i = 1,
Argon2id = 2,
Expand Down
2 changes: 1 addition & 1 deletion src/blake3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { compress, IV } from './blake2s.js';
import { Input, u8, u32, toBytes, HashXOF, wrapXOFConstructorWithOpts } from './utils.js';

// Flag bitset
enum Flags {
const enum Flags {
CHUNK_START = 1 << 0,
CHUNK_END = 1 << 1,
PARENT = 1 << 2,
Expand Down

0 comments on commit 4abac2b

Please sign in to comment.