Skip to content

Commit

Permalink
Enable reference-types in wasm examples (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
MendyBerger authored Jul 30, 2022
1 parent 86247ba commit 9311bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/editable-wat.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
await wabtInitialized;
var encoder = new TextEncoder();
let watBuffer = encoder.encode(wat);
let module = wabt.parseWat("", watBuffer, { exceptions: true });
let module = wabt.parseWat("", watBuffer, { exceptions: true, reference_types: true });
module.resolveNames();
module.validate();
const binary = module.toBinary({ log: true, write_debug_names: true });
Expand Down

0 comments on commit 9311bdf

Please sign in to comment.