From: Chris Duncan Date: Sat, 10 Oct 2026 09:39:42 +0000 (-0700) Subject: Simplify doc comment. X-Git-Tag: v2.0.0~1^2~32 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=33c3058137e6a378b52f74180e9aa2560c95db64;p=nano25519.git Simplify doc comment. --- diff --git a/src/lib/primordials.ts b/src/lib/primordials.ts index 74daa80..78bb493 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -128,14 +128,7 @@ export function isBytes (a: unknown): a is Bytes { /** Checks system endianness. Returns true if little-endian, else false. */ export const isLE = new Bytes(getBuffer(new Words([1])))[0] === 1 -/** - * Sets `array[index] = value` as an element the array owns. Assignment, `push` - * and `fill` all store through the prototype chain when the index is not yet - * defined, and call any setter found there instead, so an accessor added to - * `Array.prototype` after load could swallow the write and answer every read. - * The descriptor has no prototype, so a `get` or `set` added to - * `Object.prototype` cannot make it look like an accessor. - */ +/** Sets `array[index] = value`, avoiding prototypes and getters/setters. */ export function slot (array: T[], index: number, value: T): void { const descriptor = ObjectCreate(null) descriptor.value = value