Skip to content

Fix JavaScript collection factory value projection - #166

Merged
leileizhang (lei9444) merged 3 commits into
mainfrom
lei9444-fix-js-collection-factories
Sep 20, 2026
Merged

leileizhang (lei9444) merged 3 commits into
mainfrom
lei9444-fix-js-collection-factories

Conversation

@lei9444

@lei9444 leileizhang (lei9444) commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Convert vector and observable-vector elements, map keys, and map values using the declared WinRT types so nonempty collection factories accept their documented inputs.
  • Preserve managed null references without querying an interface; evaluate inputs once and retain expected-IID checks for non-null values.
  • Add projection and native regression tests, and run the native factory suite in CI. Public declarations and native ABI, ownership, and admission checks are unchanged.

Use the existing metadata-directed argument conversion for vector and observable-vector elements and both map key/value roles. Cover generated SDK native roundtrips without changing native admission checks or public declarations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
Run the standalone native factory suite after JS binding tests using the already verified production addon and DYNWINRT_CODEGEN artifact.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 86.03% 81.14% 85.61% regions
Python aggregate 71.06% n/a 37.9% branches
Python runtime 99.12% n/a 97.37% branches
Generated Python WinRT projections 70.05% n/a 27.07% branches
Generated Python WinRT implementations 72.29% n/a 47.04% branches
JavaScript aggregate 22.14% 25.22% 57.85% branches
JavaScript runtime 44.27% 45.76% 78.99% branches
Generated WinRT projections 22.96% 18.72% 54.88% branches
Generated WinRT implementations 48.66% 59.76% 61.14% branches
Generated Classic COM projections 11.92% 23.97% 54.2% branches

View workflow run and download full HTML/LCOV/XML reports

Reuse a single-evaluation nullable reference conversion for runtime classes and collection reference arguments. Keep expected-IID queries for non-null values and extend generated native regressions for managed nulls, invalid inputs, and recovery.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
leileizhang (lei9444) added a commit that referenced this pull request Sep 20, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: bdea384f-3022-47e8-8c74-11fd768c2105
@lei9444
leileizhang (lei9444) merged commit 34eb624 into main Sep 20, 2026
33 checks passed
@lei9444
leileizhang (lei9444) deleted the lei9444-fix-js-collection-factories branch September 20, 2026 01:11
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.

2 participants