Skip to content

Commit

Permalink
[wasm][debugger] Fix incompatibility between runtime and nuget package (
Browse files Browse the repository at this point in the history
dotnet#66295)

* Fix incompatibility between runtime and nuget package

* Update debug.ts
  • Loading branch information
thaystg authored Mar 17, 2022
1 parent 15db6e0 commit a1bc0f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mono/wasm/runtime/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export function mono_wasm_get_loaded_files(): string[] {
function _create_proxy_from_object_id(objectId: string, details: any) {
if (objectId.startsWith("dotnet:array:")) {
let ret: Array<any>;
if (details.items === undefined) {
ret = details.map ((p: any) => p.value);
return ret;
}
if (details.dimensionsDetails === undefined || details.dimensionsDetails.length === 1) {
ret = details.items.map((p: any) => p.value);
return ret;
Expand Down

0 comments on commit a1bc0f3

Please sign in to comment.