Skip to content

Commit

Permalink
Remove common caught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sliftist authored Mar 9, 2024
1 parent 53cb3a0 commit d256c94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_util/is.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export function isNativeBigIntTypedArray(value) {
*/
function isArrayBuffer(value) {
try {
// ArrayBuffers are never arrays
if (Array.isArray(value)) return false;

Check failure on line 65 in src/_util/is.mjs

View workflow job for this annotation

GitHub Actions / Lint

Unexpected use of 'Array'

Check failure on line 65 in src/_util/is.mjs

View workflow job for this annotation

GitHub Actions / Lint

Do not call methods directly, use primordials

Check failure on line 65 in src/_util/is.mjs

View workflow job for this annotation

GitHub Actions / Lint

Expected { after 'if' condition
ArrayBufferPrototypeGetByteLength(/** @type {any} */ (value));
return true;
} catch (e) {
Expand Down

0 comments on commit d256c94

Please sign in to comment.