diff --git a/lib/runtime-core/src/parse.rs b/lib/runtime-core/src/parse.rs index 8f8d2b37f..e8fabf194 100644 --- a/lib/runtime-core/src/parse.rs +++ b/lib/runtime-core/src/parse.rs @@ -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 => {}