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
Some checks failed
ci / check (push) Has been cancelled
This commit is contained in:
parent
8a1171fa41
commit
0f912547cd
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue