From 0f912547cd461644405b996e541b7986ab965ad4 Mon Sep 17 00:00:00 2001 From: Lumen Stage1 Date: Wed, 30 Sep 2026 14:19:56 -0500 Subject: [PATCH] Stage 5: eslint-disable placement fix on quota-injection prototype patch; full CI green (275 tests) --- tests/unit/persistence.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/persistence.test.ts b/tests/unit/persistence.test.ts index f6881da..16267c4 100644 --- a/tests/unit/persistence.test.ts +++ b/tests/unit/persistence.test.ts @@ -303,10 +303,10 @@ describe("slot store — P1 per-file atomic + P5 cap + files/assets", () => { const proto = (globalThis as unknown as { IDBObjectStore: { prototype: IDBObjectStore } }) .IDBObjectStore.prototype; + // Deliberate prototype patch — unbound read/assign is the point of the shim. + // eslint-disable-next-line @typescript-eslint/unbound-method const originalPut = proto.put; let injected = 0; - // Deliberate prototype patch — `this` scoping is the point of the shim. - // eslint-disable-next-line proto.put = function (this: IDBObjectStore, value: unknown, key?: IDBValidKey) { const rec = value as { bytes?: number } | null; if (rec && typeof rec.bytes === "number" && rec.bytes >= 1024) {