diff options
| author | Luca Casonato <hello@lcas.dev> | 2021-07-19 15:35:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-19 15:35:47 +0200 |
| commit | 08d2c7250bc47db8fef96a52b3a39508a0ecc8f8 (patch) | |
| tree | b93c8d5c2d710e8c968853eb843ada4e584d094c /extensions | |
| parent | af4912ed0d1c679716c7776610a6b7eb4c806f85 (diff) | |
fix: Big{U|}Int64Array in crypto.getRandomValues (#11447)
Relevant spec change: https://github.com/w3c/webcrypto/pull/266
Diffstat (limited to 'extensions')
| -rw-r--r-- | extensions/crypto/00_crypto.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/crypto/00_crypto.js b/extensions/crypto/00_crypto.js index 98359775e..99e6864e7 100644 --- a/extensions/crypto/00_crypto.js +++ b/extensions/crypto/00_crypto.js @@ -776,11 +776,13 @@ !( arrayBufferView instanceof Int8Array || arrayBufferView instanceof Uint8Array || + arrayBufferView instanceof Uint8ClampedArray || arrayBufferView instanceof Int16Array || arrayBufferView instanceof Uint16Array || arrayBufferView instanceof Int32Array || arrayBufferView instanceof Uint32Array || - arrayBufferView instanceof Uint8ClampedArray + arrayBufferView instanceof BigInt64Array || + arrayBufferView instanceof BigUint64Array ) ) { throw new DOMException( |
