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

@ -202,7 +202,7 @@ where
Instruction::CallExport { export_name } => {
instructions::call_export((*export_name).to_owned(), instruction_name)
}
Instruction::ReadUtf8 => instructions::read_utf8(instruction_name),
Instruction::MemoryToString => instructions::memory_to_string(instruction_name),
Instruction::WriteUtf8 { allocator_name } => {
instructions::write_utf8((*allocator_name).to_owned(), instruction_name)
}
@ -265,7 +265,7 @@ mod tests {
Instruction::ArgumentGet { index: 0 },
Instruction::ArgumentGet { index: 0 },
Instruction::CallExport { export_name: "foo" },
Instruction::ReadUtf8,
Instruction::MemoryToString,
Instruction::Call { function_index: 7 },
];
let interpreter: Interpreter<(), (), (), (), EmptyMemoryView> =