diff --git a/crates/interpreter/src/function_stack.rs b/crates/interpreter/src/function_stack.rs index e6482d8e..c68f77a7 100644 --- a/crates/interpreter/src/function_stack.rs +++ b/crates/interpreter/src/function_stack.rs @@ -51,7 +51,7 @@ impl FunctionStack { /// Pops a frame from the stack and sets current_code_idx to the popped frame's idx. pub fn pop(&mut self) -> Option { - self.return_stack.pop().map(|frame| { + self.return_stack.pop().inspect(|frame| { self.current_code_idx = frame.idx; frame })