From 33c3058137e6a378b52f74180e9aa2560c95db64 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 10 Oct 2026 02:39:42 -0700 Subject: [PATCH] Simplify doc comment. --- src/lib/primordials.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 -- 2.52.0