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

Impl byte_size on Scalar::Type #499

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Impl byte_size on Scalar::Type #499

merged 1 commit into from
Aug 19, 2024

Conversation

sagudev
Copy link
Member

@sagudev sagudev commented Aug 19, 2024

This implements https://searchfox.org/mozilla-central/source/js/public/ScalarType.h#66, but we return None for Type::MaxTypedArrayViewType instead of crashing. This is much more safer then what is done in mozilla (see https://hg.mozilla.org/mozilla-central/rev/52377aae89ab697c60f663c36168e40f8e9445a4 for ex)

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@jdm jdm enabled auto-merge August 19, 2024 18:32
@jdm jdm added this pull request to the merge queue Aug 19, 2024
Merged via the queue into servo:main with commit d90edd1 Aug 19, 2024
22 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