]> git.codecow.com Git - nano25519.git/commitdiff
Use captured buffer accessor instead of prototype property.
authorChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:48:46 +0000 (01:48 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 26 Sep 2026 08:48:46 +0000 (01:48 -0700)
src/lib/primordials.ts

index b85fe56ebc5d52ff3501a6fe4721723fc3556e77..8bc4393a66456001d607c62c00f43e1668c48b2f 100644 (file)
@@ -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))
 }
 
 /**