diff --git a/wasmer-it/src/interpreter/instructions/byte_arrays.rs b/wasmer-it/src/interpreter/instructions/byte_arrays.rs index 5ca3dff..18a6d7d 100644 --- a/wasmer-it/src/interpreter/instructions/byte_arrays.rs +++ b/wasmer-it/src/interpreter/instructions/byte_arrays.rs @@ -18,6 +18,7 @@ executable_instruction!( InstructionErrorKind::StackIsTooSmall { needed: 2 }, ) })?; + println!("byte_array lift memory: {:?}", inputs); let memory_index = 0; let memory = runtime @@ -38,10 +39,13 @@ executable_instruction!( .try_into() .map_err(|e| (e, "length").into()) .map_err(|k| InstructionError::from_error_kind(instruction.clone(), k))?; + + println!("byte_array lift memory: pointer {} length {}", pointer, length); + let memory_view = memory.view(); if length == 0 { - runtime.stack.push(IValue::String("".into())); + runtime.stack.push(IValue::ByteArray(vec![])); return Ok(()) }