Skip to content

Editorial: mark the conversion operation in NumericToRawBytes as infallible #3603

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
Jun 27, 2025

Conversation

michaelficarra
Copy link
Member

I haven't actually checked yet that there's no path that can throw here. But each of these AOs that are indirectly referenced through the table return completion records (which are sometimes abrupt!). So we better hope that they can't be made to throw.

@michaelficarra michaelficarra requested a review from a team May 15, 2025 00:34
@michaelficarra michaelficarra added editorial change completion records Relates to completion records, and ? / ! notation. labels May 15, 2025
@bakkot
Copy link
Contributor

bakkot commented May 15, 2025

The conversion operations only throw in type coercions which aren't applicable here, so they indeed cannot throw.

Copy link
Member

@linusg linusg left a comment

Choose a reason for hiding this comment

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

Checked two engine implementations and they already assert a normal completion for this.

@michaelficarra michaelficarra added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Jun 26, 2025
@ljharb ljharb changed the title mark the conversion operation in NumericToRawBytes as infallible Editorial: mark the conversion operation in NumericToRawBytes as infallible Jun 27, 2025
@ljharb ljharb force-pushed the NumericToRawBytes-conversion-completion branch from 4f257e7 to 17b5581 Compare June 27, 2025 06:09
@ljharb ljharb merged commit 17b5581 into main Jun 27, 2025
8 checks passed
@ljharb ljharb deleted the NumericToRawBytes-conversion-completion branch June 27, 2025 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion records Relates to completion records, and ? / ! notation. editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants