summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-08-06 22:28:22 -0500
committerBrian Smith <brian@dbsoft.org>2023-08-06 22:28:22 -0500
commit39d52370dc5b1695a5bd7eba505ffc6d39d31509 (patch)
tree13cb1eb75bcc0e8825505c7ddc1291b269f64715
parent8b1222c5f88cfa5a1cd5fa2a01b61eeb5a8c0b0c (diff)
downloaduxp-39d52370dc5b1695a5bd7eba505ffc6d39d31509.tar.gz
Issue #2026 - Follow-up: Support Big(U)Int64Array in crypto.getRandomValues.
https://bugzilla.mozilla.org/show_bug.cgi?id=1718932
-rw-r--r--dom/base/Crypto.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/base/Crypto.cpp b/dom/base/Crypto.cpp
index 4226832f4b..863c26c902 100644
--- a/dom/base/Crypto.cpp
+++ b/dom/base/Crypto.cpp
@@ -75,6 +75,8 @@ Crypto::GetRandomValues(JSContext* aCx, const ArrayBufferView& aArray,
case js::Scalar::Uint16:
case js::Scalar::Int32:
case js::Scalar::Uint32:
+ case js::Scalar::BigInt64:
+ case js::Scalar::BigUint64:
break;
default:
aRv.Throw(NS_ERROR_DOM_TYPE_MISMATCH_ERR);