diff --git a/editor/js/editable-wat.js b/editor/js/editable-wat.js index 817240dab..5da31e652 100644 --- a/editor/js/editable-wat.js +++ b/editor/js/editable-wat.js @@ -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 });