Repository navigation
Add explicit WinRT property value unboxing - #131
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mixed-language test coverageWorkflow status: ✅ Passed
|
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Shawn Yuan (shuaiyuanxx)
approved these changes
Sep 3, 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
IPropertyValuedetection and explicit scalar/array unboxingunboxObjectandunbox_objecthelpers while preserving null and exact non-IPropertyValueobject identityunboxObjectinput asunknown, allowing generatedObject/IInspectableresults to pass directly under strict TypeScript while retaining runtime validation and a precise return unionbigint, Python 64-bit integers toint, GUIDs to native language forms, and byte arrays toUint8Array/bytesPropertyType, invalid JavaScript input, and native getter errors without changing generated/rawObjectbehaviorunknowninputs, and the existing clear N-API validation errorValidation
cargo test -p dynwinrt: 260 unit tests + 1 regression test passed; 1 ignoredcargo test -p dynwinrt-codegen: 561 passednpm run build --prefix bindings\js: passednpm run test:types --prefix bindings\js: strict TypeScript passed with anunknownObject-valued result passed directly tounboxObjectnpm test --prefix bindings\js: 42 passed; 2 skipped fixture/feature-dependent testspython -m mypy.stubtest dynwinrt: passedCloses #127