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> {
|
) -> RefOrOwned<'a, Line> {
|
||||||
match p {
|
match p {
|
||||||
LocalCodePtr::Halt => {
|
LocalCodePtr::Halt => {
|
||||||
unreachable!()
|
// exit with the interrupt exit code.
|
||||||
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
LocalCodePtr::DirEntry(p) => {
|
LocalCodePtr::DirEntry(p) => {
|
||||||
RefOrOwned::Borrowed(&self.code[p as usize])
|
RefOrOwned::Borrowed(&self.code[p as usize])
|
||||||
|
|||||||
Reference in New Issue
Block a user