Skip to content

Commit

Permalink
fix: add BigInt64Array and remove Float32Array, Float64Array
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkldshv committed May 25, 2022
1 parent 4539aa9 commit b810e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions cli/tests/unit/get_random_values_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Deno.test(function getRandomValuesInt32Array() {
assertNotEquals(arr, new Int32Array(8));
});

Deno.test(function getRandomValuesBigInt64Array() {
const arr = new BigInt64Array(8);
crypto.getRandomValues(arr);
assertNotEquals(arr, new BigInt64Array(8));
});

Deno.test(function getRandomValuesUint32Array() {
const arr = new Uint32Array(8);
crypto.getRandomValues(arr);
Expand Down
3 changes: 1 addition & 2 deletions ext/crypto/lib.deno_crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,8 @@ declare interface Crypto {
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| BigInt64Array
| BigUint64Array
| Float32Array
| Float64Array
| DataView
| null,
>(
Expand Down

0 comments on commit b810e03

Please sign in to comment.