summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-09-06 11:18:05 -0500
committerMoonchild <moonchild@palemoon.org>2023-09-20 03:32:41 +0200
commitfa0b03a10f34178d4a5f98532c6f714bdc25ec25 (patch)
tree95723a960dc4f94af773f772d128b1a2f471c6e1
parent3ae297295060144357cd05b8cd671bb168b1c24e (diff)
downloaduxp-fa0b03a10f34178d4a5f98532c6f714bdc25ec25.tar.gz
Issue #2026 Follow-up: Fill in missing BigInt64 cases in js::IsTypedArrayConstructor().
Hopefully fixes RSA errors on ProtonMail.
-rw-r--r--js/src/vm/TypedArrayObject.cpp4
1 files changed, 4 insertions, 0 deletions
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: