From: Chris Duncan Date: Sat, 26 Sep 2026 08:48:46 +0000 (-0700) Subject: Use captured buffer accessor instead of prototype property. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=13501daae7a69504f1d68d2019dd6dd492d88e38;p=nano25519.git Use captured buffer accessor instead of prototype property. --- 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)) } /**