disable check

This commit is contained in:
vms 2021-04-25 01:21:06 +03:00
parent e8e492dd48
commit 27c13e9547
2 changed files with 0 additions and 6 deletions

View File

@ -20,9 +20,6 @@ use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum LoError {
#[error("Allocator of Wasm module returns 0 which means that it's out of memory")]
AllocateWasInvalid,
#[error("{0}")]
AllocatableError(#[from] AllocatableError),

View File

@ -55,9 +55,6 @@ impl<'i, A: Allocatable> MemoryWriter<'i, A> {
pub fn sequential_writer(&self, size: u32, type_tag: u32) -> LoResult<SequentialWriter> {
let offset = self.heap_manager.allocate(size, type_tag)?;
if offset == 0 {
return Err(LoError::AllocateWasInvalid);
}
let new_mem_slice = self.heap_manager.memory_slice(DEFAULT_MEMORY_INDEX)?;
self.memory.set(new_mem_slice);