From 7392901a9b0166358badea4eb7e0a14163e5208d Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 6 Sep 2023 11:18:05 -0500 Subject: [PATCH] Issue #2026 Follow-up: Fill in missing BigInt64 cases in js::IsTypedArrayConstructor(). Hopefully fixes RSA errors on ProtonMail. --- js/src/vm/TypedArrayObject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/vm/TypedArrayObject.cpp b/js/src/vm/TypedArrayObject.cpp index 28e4090eb8..4c583f10f8 100644 --- a/js/src/vm/TypedArrayObject.cpp +++ b/js/src/vm/TypedArrayObject.cpp @@ -3245,6 +3245,10 @@ js::IsTypedArrayConstructor(HandleValue v, uint32_t type) return IsNativeFunction(v, Int32Array::class_constructor); case Scalar::Uint32: return IsNativeFunction(v, Uint32Array::class_constructor); + case Scalar::BigInt64: + return IsNativeFunction(v, BigInt64Array::class_constructor); + case Scalar::BigUint64: + return IsNativeFunction(v, BigUint64Array::class_constructor); case Scalar::Float32: return IsNativeFunction(v, Float32Array::class_constructor); case Scalar::Float64: