Skip to content
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

Fallible setters, and fields.delete method #69

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

elliottt
Copy link
Collaborator

@elliottt elliottt commented Nov 7, 2023

As the setters for outgoing-request and outgoing-response take argument values that are potentially malformed, allow all setters to reject invalid inputs. This necessitated removing some constructor arguments, as wit currently does not allow for constructors to fail, replacing them instead with documented sensible defaults.

Additionally, as the fields.delete method is mutating the fields, change its return type to also permit a forbidden error.

@elliottt elliottt marked this pull request as ready for review November 7, 2023 22:49
Copy link
Member

@lukewagner lukewagner left a comment

Choose a reason for hiding this comment

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

lgtm

@elliottt elliottt merged commit 8c70f87 into WebAssembly:main Nov 8, 2023
1 check passed
@elliottt elliottt deleted the trevor/fallible-setters branch December 5, 2023 19:04
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