Skip to content

Commit

Permalink
[WIP] tracer: Show contextual disassembly
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Sep 20, 2024
1 parent b0b1ff2 commit cde998a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/tracer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ export default function App() {
);
}

async function loadR2() {
const r2 = await WebAssembly.instantiateStreaming(fetch("libr.wasm"), {
env: {
memory: new WebAssembly.Memory({ initial: 4096 }),
},
"GOT.func": {},
"GOT.mem": {}
});
console.log("got r2:', r2");
}

loadR2()
.catch(e => {
console.error(e);
});

type TracerMessage =
| TracerSyncMessage
| HandlersAddMessage
Expand Down

0 comments on commit cde998a

Please sign in to comment.