treat LocalCodePtr::Halt received at lookup_local_instr as an interrupt (#823)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user