diff options
author | 2023-03-03 18:51:52 -0800 | |
---|---|---|
committer | 2023-03-03 18:51:52 -0800 | |
commit | 9f132ea241e65e47809d0e533ce8973d82f8fa25 (patch) | |
tree | 87a7baf5f785efb6c1bb2ccec43aef858b15c5e9 | |
parent | 7c367ff687554c39baf1d27218c9c8bc7129650b (diff) | |
download | bun-9f132ea241e65e47809d0e533ce8973d82f8fa25.tar.gz bun-9f132ea241e65e47809d0e533ce8973d82f8fa25.tar.zst bun-9f132ea241e65e47809d0e533ce8973d82f8fa25.zip |
`BigInt64Array` and `BigUint64Array` are typed arrays too
Fixes #2296
-rw-r--r-- | src/bun.js/bindings/bindings.zig | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bun.js/bindings/bindings.zig b/src/bun.js/bindings/bindings.zig index b44df1103..395dde0d3 100644 --- a/src/bun.js/bindings/bindings.zig +++ b/src/bun.js/bindings/bindings.zig @@ -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, }; } |