(
&mut self,
context: &str,
instruction_index: usize,
)
| 81 | context: &str, |
| 82 | instruction_index: usize, |
| 83 | ) -> jvm::Result<FrameValue> { |
| 84 | let value = self.pop(context, instruction_index)?; |
| 85 | if value.is_category2() { |
| 86 | return Err(jvm::Error::VerificationError { |
| 87 | context: context.to_string(), |
| 88 | message: format!( |
| 89 | "Expected category-1 value at instruction {instruction_index}, found {value:?}" |
| 90 | ), |
| 91 | }); |
| 92 | } |
| 93 | Ok(value) |
| 94 | } |
| 95 | |
| 96 | fn pop_reference( |
| 97 | &mut self, |
| 98 | context: &str, |
| 99 | instruction_index: usize, |
| 100 | ) -> jvm::Result<FrameValue> { |
| 101 | let value = self.pop_category1(context, instruction_index)?; |
no test coverage detected