Skip to content

Commit

Permalink
Fixup timingSafeEqual export for node crypto
Browse files Browse the repository at this point in the history
Fixes: #2172
  • Loading branch information
jasnell committed Jun 4, 2024
1 parent b1e83a3 commit 7516fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

export const getRandomValues = crypto.getRandomValues;
export const subtle = crypto.subtle;
export const timingSafeEqual = (crypto as any).timingSafeEqual;
export const timingSafeEqual = (subtle as any).timingSafeEqual;
export const webcrypto = crypto;

import {
Expand Down

0 comments on commit 7516fa2

Please sign in to comment.