treat LocalCodePtr::Halt received at lookup_local_instr as an interrupt (#823)

This commit is contained in:
Mark Thom
2021-02-19 13:44:22 -07:00
parent eff892ccb8
commit a08f5c3016

View File

@@ -24,7 +24,8 @@ impl CodeRepo {
) -> 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])