jco
jco copied to clipboard
Throw an error when passing arrays when expecting arraybuffers
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?).
At the moment, it just passes through an array buffer with invalid values without any warning or error.