From 9d5459221ff663b6c0058440167e098886d97cc2 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:02:34 -0700 Subject: fix #5865 (#5890) * make sure types are the same * tests --- src/bun.js/bindings/bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(c2Type))) { + if (!isTypedArrayType(static_cast(c2Type)) || c1Type != c2Type) { return false; } -- cgit v1.2.3