summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBrian Smith <brian@dbsoft.org>2023-09-06 11:18:05 -0500
committerBrian Smith <brian@dbsoft.org>2023-09-06 11:18:05 -0500
commit47fbe9552a80507a2dee5b8c1c9b23e237fea9d8 (patch)
tree56ee4be299c7f238f428b78a959cf9dafe2155a3 /js
parentee97a5dad40fb8d207b717cb2a0d487f54dd5f1d (diff)
downloaduxp-47fbe9552a80507a2dee5b8c1c9b23e237fea9d8.tar.gz
Issue #2026 Follow-up: Fill in missing BigInt64 cases in js::IsTypedArrayConstructor().
Hopefully fixes RSA errors on ProtonMail.
Diffstat (limited to 'js')
-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: