Repository navigation
Support struct-valued WinRT progress callbacks - #110
Merged
Merged
Conversation
Route by-value WinRT structs through cached ABI-aware libffi closures, retain nested non-blittable fields for asynchronous dispatch, and enable fail-closed JS/Python progress projection with loopback HttpProgress coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mixed-language test coverageWorkflow status: ✅ Passed
|
Propagate callback closure creation errors through the JavaScript and Python Result paths, and move live HttpProgress coverage into binding-level loopback tests so the shared generated coverage graph stays at its established baseline. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Prepare callback CIFs through fallible libffi APIs, make executable closure allocation null-safe, reject zero-sized callback structs, and use unaligned-safe 64-bit callback storage across WinRT and Classic COM. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Validate struct callback graphs recursively before libffi preparation and add compile-time Send/Sync coverage for cached callback storage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Shawn Yuan (shuaiyuanxx)
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ValueTypeDataownership, recursively duplicating HSTRING, COM/interface, parameterized-interface, and nested-struct fields before asynchronous dispatchtry_create_*APIsArrayOfIUnknown, andOutValueshapes fail-closedHttpProgressas the projected struct typeWindows.Web.Http.HttpProgresscallbacks in both binding suites using loopback-only HTTP servers, without expanding the shared generated E2E dependency graphValidation
i64/u64/f64callback input/output storage tests for WinRT and Classic COMHttpProgressconverter and declaration/stub regression testsThis branch is based directly on
mainand does not depend on PR #109.