refactor(analysis): remove fixed result quotas

This commit is contained in:
morluto
2026-09-29 13:57:24 +08:00
parent 0e2738ffb6
commit 20152a9872
105 changed files with 605 additions and 1084 deletions
@@ -156,21 +156,17 @@ describe("JavaScript semantic analysis: calls 2", () => {
]);
});
it("bounds Promise recovery with an explicit frontier", () => {
it("retains every promise operation found in the finite source", () => {
const ir = analyzeJavaScriptSemantics(
`
Promise.resolve(1);
Promise.resolve(2);
Promise.resolve(3);
`,
{ maxPromiseOperations: 1 },
);
expect(ir.promiseOperations).toHaveLength(1);
expect(ir.coverage).toMatchObject({
status: "truncated",
limitsReached: ["maxPromiseOperations"],
});
expect(ir.promiseOperations).toHaveLength(3);
expect(ir.coverage.status).toBe("complete");
});
it("fingerprints formatting and local-name changes identically", () => {