treat LocalCodePtr::Halt received at lookup_local_instr as an interrupt
@@ -24,7 +24,8 @@ fn lookup_local_instr<'a>(
) -> RefOrOwned<'a, Line> {
match p {
LocalCodePtr::Halt => {
- unreachable!()
+ // exit with the interrupt exit code.
+ std::process::exit(1);
}
LocalCodePtr::DirEntry(p) => {
RefOrOwned::Borrowed(&self.code[p as usize])
