[wasm] Fix Uint8ClampedArray.From(byte[]) invalid cast (#13790)
commitd12d4c9f45d8dbadf9d1d4660516905242a044b0
authorKenneth Pouncey <kjpou@pt.lu>
Sat, 6 Apr 2019 08:36:33 +0000 (6 10:36 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2019 08:36:33 +0000 (6 10:36 +0200)
tree6fdf3a50433dd68b5813683e96c635bd59c50ba9
parent1ae3a94254d286a9c77213e0ea50321358734a88
[wasm] Fix Uint8ClampedArray.From(byte[]) invalid cast (#13790)

* Handle Uint8ClampedArray from byte[] array correctly.

Fixes https://github.com/mono/mono/issues/13787

* Add tests for TypedArray.From

* Fix assert descriptions.

* Add TypedArrayTypeCode which is an enum of typed array types.

- Add tests
sdks/wasm/Makefile
sdks/wasm/binding_support.js
sdks/wasm/framework/src/WebAssembly.Bindings/Core/TypedArray.cs
sdks/wasm/framework/src/WebAssembly.Bindings/Core/TypedArrayTypeCode.cs [new file with mode: 0644]
sdks/wasm/framework/src/WebAssembly.Bindings/Interfaces.cs
sdks/wasm/tests/browser/BindingsTestSuite.cs [new file with mode: 0644]
sdks/wasm/tests/browser/http-spec.js