improvements to inspector app

This commit is contained in:
Brandon Liu
2022-06-13 16:48:58 +08:00
parent beef7a3ab7
commit 9962b4e344
8 changed files with 241 additions and 138 deletions

View File

@@ -536,7 +536,7 @@ export class ProtocolCache {
instance!.source
.getBytes(val.offset, val.length)
.then((arr) => {
callback(null, arr, null, null);
callback(null, new Uint8Array(arr.buffer), null, null);
})
.catch((e) => {
callback(new Error("Canceled"), null, null, null);