aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-09-21 21:02:34 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-21 21:02:34 -0700
commit9d5459221ff663b6c0058440167e098886d97cc2 (patch)
treea858b76f77c3b038df5806d4f8b52e1d91b89b7b /src/bun.js
parent341c1c1804401ff48b44774206c646751976c217 (diff)
downloadbun-9d5459221ff663b6c0058440167e098886d97cc2.tar.gz
bun-9d5459221ff663b6c0058440167e098886d97cc2.tar.zst
bun-9d5459221ff663b6c0058440167e098886d97cc2.zip
fix #5865 (#5890)
* make sure types are the same * tests
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/bindings/bindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp
index bff5640ef..1e0d1c97e 100644
--- a/src/bun.js/bindings/bindings.cpp
+++ b/src/bun.js/bindings/bindings.cpp
@@ -618,7 +618,7 @@ bool Bun__deepEquals(JSC__JSGlobalObject* globalObject, JSValue v1, JSValue v2,
case Float64ArrayType:
case BigInt64ArrayType:
case BigUint64ArrayType: {
- if (!isTypedArrayType(static_cast<JSC::JSType>(c2Type))) {
+ if (!isTypedArrayType(static_cast<JSC::JSType>(c2Type)) || c1Type != c2Type) {
return false;
}