Stage 5: eslint-disable placement fix on quota-injection prototype patch; full CI green (275 tests)
Some checks failed
ci / check (push) Has been cancelled

This commit is contained in:
Lumen Stage1 2026-09-30 14:19:56 -05:00
commit 0f912547cd

View file

@ -303,10 +303,10 @@ describe("slot store — P1 per-file atomic + P5 cap + files/assets", () => {
const proto = (globalThis as unknown as { IDBObjectStore: { prototype: IDBObjectStore } }) const proto = (globalThis as unknown as { IDBObjectStore: { prototype: IDBObjectStore } })
.IDBObjectStore.prototype; .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; const originalPut = proto.put;
let injected = 0; 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) { proto.put = function (this: IDBObjectStore, value: unknown, key?: IDBValidKey) {
const rec = value as { bytes?: number } | null; const rec = value as { bytes?: number } | null;
if (rec && typeof rec.bytes === "number" && rec.bytes >= 1024) { if (rec && typeof rec.bytes === "number" && rec.bytes >= 1024) {