Issue #2026 - Follow-up: Support Big(U)Int64Array in crypto.getRandomValues. https://bugzilla.mozilla.org/show_bug.cgi?id=1718932

This commit is contained in:
Brian Smith 2023-08-06 22:28:22 -05:00 committed by roytam1
commit 6464b061c3

View file

@ -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);