Skip to content

[Calls] Compare sparse lifecycle returns by own indices - #658

Draft
CaelmBleidd wants to merge 1 commit into
caelmbleidd/calls-lifecycle-sparse-basefrom
caelmbleidd/calls-sparse-lifecycle-returns
Draft

CaelmBleidd wants to merge 1 commit into
caelmbleidd/calls-lifecycle-sparse-basefrom
caelmbleidd/calls-sparse-lifecycle-returns

Conversation

@CaelmBleidd

Copy link
Copy Markdown
Member

Rehydrate sparse arrays in a lifecycle input graph with their own-slot layout and aliases intact. Compare the returned own data properties, array length, and hole positions with the predicted graph in Node. The ordinary tagged-value codec still handles values it can represent. Sparse matches are recorded in the explicit return comparison field.

This draft's review base composes #648 with the three sparse witness changes from #640. It adapts the #640 fixture to #648's existing Node adapter because the saved-input helper from its separate #617 line is absent on this lifecycle line. The review diff contains only the return comparator and its tests.

All 28 selected Calls tests passed on JDK 11, Node 22 and JacoDB 4251d2023d built from source. The tests distinguish an absent array slot from own undefined and verify a cyclic sparse input, successful sparse comparison, and dense/sparse mismatches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant