BigInt64Array and BigUint64Array are typed arrays too

Fixes #2296
This commit is contained in:
Jarred Sumner
2023-03-03 18:51:52 -08:00
parent 7c367ff687
commit 9f132ea241

View File

@@ -2828,7 +2828,19 @@ pub const JSValue = enum(JSValueReprInt) {
pub fn isTypedArray(this: JSType) bool {
return switch (this) {
.Int8Array, .Int16Array, .Int32Array, .Uint8Array, .Uint8ClampedArray, .Uint16Array, .Uint32Array, .Float32Array, .Float64Array, .ArrayBuffer => true,
.ArrayBuffer,
.BigInt64Array,
.BigUint64Array,
.Float32Array,
.Float64Array,
.Int16Array,
.Int32Array,
.Int8Array,
.Uint16Array,
.Uint32Array,
.Uint8Array,
.Uint8ClampedArray,
=> true,
else => false,
};
}