-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
Adding a new data segment produces bad Wasm binary.
Steps to Reproduce
let mut m = Module::with_config(ModuleConfig::new());
m.data.add(DataKind::Passive, vec![1,2,3,4]);
m.emit_wasm_file("out.wasm").unwrap();
Running wasm2wat out.wasm -o out.wat
gets the following error
000000e: error: invalid section code: 12
Expected Behavior
wasm2wat should produce no error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working