Share parser modes and collision-free composite keys, enforce architecture guards, and consolidate redundant unit assertions into filesystem, CLI, MCP, and producer-backed workflows. Preserve concurrent upstream boundary fixes and exclude legacy Objective-C class-name bookkeeping labels. Validation: source/composition suites (3358 passing), focused canonical digest and MCP checks, typecheck/lint, Knip, formatting, architecture guards, and real Foundation archive and Apple legacy simulator CLI/MCP verification. No real Hopper, Ghidra, or IDA verification claim.
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import { expect, it } from "vitest";
|
|
|
|
import { projectPlistValue } from "./plistValue.js";
|
|
|
|
it("rejects excessive plist nesting without exhausting the stack", () => {
|
|
const deep: unknown[] = [];
|
|
let cursor = deep;
|
|
for (let depth = 0; depth < 200; depth += 1) {
|
|
const next: unknown[] = [];
|
|
cursor.push(next);
|
|
cursor = next;
|
|
}
|
|
expect(() => projectPlistValue(deep)).toThrow(RangeError);
|
|
});
|