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

Allow constructors to be immutable and add it for ImageData #2400

Merged
merged 3 commits into from
Jan 4, 2021

Conversation

JAicewizard
Copy link
Contributor

This fixes #2364 and makes it easy to any constructor to me immutable.

Also includes a test to make sure that there is no magic things going on and that the original array is not modified(at least form the WASM side of things)

@alexcrichton alexcrichton merged commit c195746 into rustwasm:master Jan 4, 2021
@alexcrichton
Copy link
Contributor

Thanks!

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.

ImageData.html::new_with_u8_clamped_array should accept immutable u8_clamped_array
2 participants