From 13544ec62ddf3dcecca56bfb036dfbf31a3a24db Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 26 Sep 2026 01:32:49 -0700 Subject: [PATCH] Fix endian check. --- src/lib/primordials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/primordials.ts b/src/lib/primordials.ts index 5282fef..6c67d63 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -46,7 +46,7 @@ export type Bytes = Uint8Array export type Words = Uint32Array export type View = DataView export const isArray = Array.isArray -export const isLE = new Uint8Array(new Uint32Array([1]).buffer)[0] !== 1 +export const isLE = new Uint8Array(new Uint32Array([1]).buffer)[0] === 1 /** `TypedArray` constructors, bound before anything can replace the globals. */ const Bytes = Uint8Array -- 2.52.0