From 13501daae7a69504f1d68d2019dd6dd492d88e38 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 26 Sep 2026 01:48:46 -0700 Subject: [PATCH] Use captured buffer accessor instead of prototype property. --- 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 b85fe56..8bc4393 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -128,7 +128,7 @@ export function isBytes (a: unknown): a is Bytes { /** Captured version of `DataView` reusing input offset and length. */ export function view (bytes: Bytes): View { - return new View(bytes.buffer, getByteOffset.call(bytes), getByteLength.call(bytes)) + return new View(getBuffer.call(bytes), getByteOffset.call(bytes), getByteLength.call(bytes)) } /** -- 2.52.0