Skip to content

Commit

Permalink
Add exposing memory in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Jun 6, 2020
1 parent b3900b7 commit fefe522
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/compiler/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ export function compileModule({
];
});

/* Uncomment this to expose memory
xports.push([
...encodeString("memory"),
EXPORT_TYPE.MEMORY,
...unsignedLEB128(0),
]);
*/

// https://webassembly.github.io/spec/core/binary/modules.html#code-section
const codes = [...localFuncs, ...moduleFuncs].map(func => {
// TODO: We could collapose consecutive types here, or even move to a two
Expand Down

0 comments on commit fefe522

Please sign in to comment.