feat(interface-types) read-utf8 is renamed memory-to-string.

This commit is contained in:
Ivan Enderlin
2020-03-09 15:06:35 +01:00
parent f38c45e373
commit 2d6b987791
9 changed files with 36 additions and 36 deletions

View File

@ -265,7 +265,7 @@ where
export_name.to_bytes(writer)?;
}
Instruction::ReadUtf8 => 0x03_u8.to_bytes(writer)?,
Instruction::MemoryToString => 0x03_u8.to_bytes(writer)?,
Instruction::WriteUtf8 { allocator_name } => {
0x04_u8.to_bytes(writer)?;
@ -556,7 +556,7 @@ mod tests {
Instruction::ArgumentGet { index: 1 },
Instruction::Call { function_index: 1 },
Instruction::CallExport { export_name: "abc" },
Instruction::ReadUtf8,
Instruction::MemoryToString,
Instruction::WriteUtf8 {
allocator_name: "abc",
},
@ -605,7 +605,7 @@ mod tests {
0x00, 0x01, // ArgumentGet { index: 1 }
0x01, 0x01, // Call { function_index: 1 }
0x02, 0x03, 0x61, 0x62, 0x63, // CallExport { export_name: "abc" }
0x03, // ReadUtf8
0x03, // MemoryToString
0x04, 0x03, 0x61, 0x62, 0x63, // WriteUtf8 { allocator_name: "abc" }
0x07, // I32ToS8
0x08, // I32ToS8X