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 | |
| parent | af4912ed0d1c679716c7776610a6b7eb4c806f85 (diff) | |
fix: Big{U|}Int64Array in crypto.getRandomValues (#11447)
Relevant spec change: https://github.com/w3c/webcrypto/pull/266
| -rw-r--r-- | extensions/crypto/00_crypto.js | 4 | ||||
| -rw-r--r-- | tools/wpt/expectation.json | 2 |
2 files changed, 4 insertions, 2 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( diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 2087b70aa..dc33d70de 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -1962,7 +1962,7 @@ "wrapKey_unwrapKey.https.any.html": false }, "randomUUID.any.html": true, - "getRandomValues-bigint.tentative.any.html": false + "getRandomValues-bigint.tentative.any.html": true }, "console": { "console-is-a-namespace.any.html": true, |
