[wasm] Add task marshaling tests. (#61324)
authorMarek Fišera <mara@neptuo.com>
Wed, 10 Nov 2021 09:20:40 +0000 (10:20 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Nov 2021 09:20:40 +0000 (10:20 +0100)
commite64cce6fbbde72d1ea61010bd08f11ba7b51afc9
treecd46e90680e3131afe23756a06f312276f750d2b
parent3dce93bafed000321a4448b9212268f98d6e991f
[wasm] Add task marshaling tests. (#61324)

Add various tests for marshaling task to JavaScript promise.

- Sync and async.
- Task and ValueTask.
- Generic and non-generic.
- Successful and failed.
src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/HelperMarshal.cs
src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/MarshalTests.cs