[wasm][debugger] Fix assert when passing an invalid array to runtime. (#73006)
authorThays Grazia <thaystg@gmail.com>
Thu, 28 Jul 2022 20:32:14 +0000 (17:32 -0300)
committerGitHub <noreply@github.com>
Thu, 28 Jul 2022 20:32:14 +0000 (16:32 -0400)
commit07ebba11fd027aa75f8090052cd4ae232fa31c57
tree893a9e74fd2e0e31a375f1574bb4c1708a7705a3
parentef7c9809a7e47136e0878c78f087b0ac23a71383
[wasm][debugger] Fix assert when passing an invalid array to runtime. (#73006)

Check if it's an array before calling the array functions.

Fix #65742
src/mono/mono/component/debugger-agent.c
src/mono/wasm/debugger/DebuggerTestSuite/ArrayTests.cs