From 2fb3f59e4d2e4414a4ddb73dbb0cd3b0781e229e Mon Sep 17 00:00:00 2001 From: sliftist <52947011+sliftist@users.noreply.github.com> Date: Sat, 9 Mar 2024 06:58:21 -0500 Subject: [PATCH] Remove common caught exception (#1156) --- src/_util/is.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/_util/is.mjs b/src/_util/is.mjs index db6ff424..9699cff8 100644 --- a/src/_util/is.mjs +++ b/src/_util/is.mjs @@ -61,6 +61,10 @@ export function isNativeBigIntTypedArray(value) { */ function isArrayBuffer(value) { try { + // ArrayBuffers are never arrays + if (ArrayIsArray(value)) { + return false; + } ArrayBufferPrototypeGetByteLength(/** @type {any} */ (value)); return true; } catch (e) {