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

Throw an error when passing arrays when expecting arraybuffers #29

Open
guybedford opened this issue Feb 10, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@guybedford
Copy link
Collaborator

This one caught me off-guard and seems like an easy footgun. Passing [1,2,3] into a Vec<u32> by mistake should give a clear error (or coercion?).

@guybedford
Copy link
Collaborator Author

At the moment, it just passes through an array buffer with invalid values without any warning or error.

@yoshuawuyts yoshuawuyts added the bug Something isn't working label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants