Summary
After visiting the loop body, the code unconditionally calls self.result_stack.pop() and then checks if not body_val. If the body visits a void-returning statement (e.g. a bare assignment or a print), nothing is pushed and the pop raises IndexError.
OS / Environment
Steps to Reproduce
File Upload (optional)
No response
Expected Results
Actual Results
IRx version
Code of Conduct
Summary
After visiting the loop body, the code unconditionally calls
self.result_stack.pop()and then checksif not body_val. If the body visits a void-returning statement (e.g. a bare assignment or a print), nothing is pushed and the pop raises IndexError.OS / Environment
-Steps to Reproduce
File Upload (optional)
No response
Expected Results
Actual Results
-IRx version
-Code of Conduct