Fix incomplete data section

This commit is contained in:
losfair 2019-04-28 15:38:18 +08:00
parent 46fb72af9d
commit 305e1801ff

View File

@ -314,7 +314,7 @@ pub fn read_module<
base = Some(eval_init_expr(op)?)
}
ParserState::DataSectionEntryBodyChunk(chunk) => {
data = chunk.to_vec();
data.extend_from_slice(chunk);
}
ParserState::BeginInitExpressionBody
| ParserState::EndInitExpressionBody => {}