Skip to content

Issue #23587: Allow omitting optional fields in value objects #23675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

rubenlg
Copy link
Contributor

@rubenlg rubenlg commented Feb 14, 2025

This PR modifies libembind.js to skip presence checks for std::optional fields in value objects. As discussed in #23587 with @brendandahl . I added a test and verified that the test fails without the libembind.js change and passes with it. All other test_embind cases still pass.

@brendandahl brendandahl self-requested a review March 3, 2025 16:33
Copy link
Collaborator

@brendandahl brendandahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed this. Thanks for the PR!

@brendandahl brendandahl merged commit 4a8bc69 into emscripten-core:main Mar 3, 2025
27 checks passed
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