test(javascript): pin mesh call targets and cycle dependence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
840d707257
commit
a262e1c220
1 file changed
+4
-2
@@ -93,8 +93,10 @@ it("bounds reassignment meshes by write pairs when reads select every write", ()
|
||||
throw new Error("Missing call");
|
||||
const reads = vi.spyOn(context.bindingCache, "get");
|
||||
const result = context.resolve(last.expression.callee);
|
||||
expect(result).toMatchObject({ complete: false });
|
||||
expect(result.callableIds).toHaveLength(2);
|
||||
expect(result).toMatchObject({ complete: false, cycleDependent: true });
|
||||
expect(
|
||||
result.callableIds.map((id) => context.callableById.get(id)?.name).sort(),
|
||||
).toEqual(["f", "g"]);
|
||||
return reads.mock.calls.length;
|
||||
};
|
||||
const small = measure(6);
|
||||
|
||||
Reference in new issue
Block a user