From 08d2c7250bc47db8fef96a52b3a39508a0ecc8f8 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 19 Jul 2021 15:35:47 +0200 Subject: fix: Big{U|}Int64Array in crypto.getRandomValues (#11447) Relevant spec change: https://github.com/w3c/webcrypto/pull/266 --- extensions/crypto/00_crypto.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/crypto') 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( -- cgit v1.2.3