Skip to content

Commit

Permalink
Fix Node 18 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Apr 9, 2024
1 parent c14f581 commit bab90de
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ if (!('CryptoKey' in globalThis)) {
});
}

globalThis.crypto ??= webcrypto as typeof globalThis.crypto;
globalThis.crypto.getRandomValues = <Type extends ArrayBufferView | null>(
array: Type,
) => {
Expand Down

0 comments on commit bab90de

Please sign in to comment.