mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 05:12:15 +03:00
interpreter: make sure called formulas in new frames are recorded as being in tail position
This commit is contained in:
parent
7e4558e4f9
commit
d610442e8b
@ -300,7 +300,7 @@ pub fn interpret(
|
||||
*stack.top() = NockWork::Work2(vale);
|
||||
stack.frame_push(0);
|
||||
*stack.push() = NockWork::Ret;
|
||||
push_formula(stack, res, false);
|
||||
push_formula(stack, res, true);
|
||||
}
|
||||
}
|
||||
Todo2::RestoreSubject => {
|
||||
@ -444,7 +444,7 @@ pub fn interpret(
|
||||
subject = res;
|
||||
stack.frame_push(0);
|
||||
*stack.push() = NockWork::Ret;
|
||||
push_formula(stack, formula, false);
|
||||
push_formula(stack, formula, true);
|
||||
}
|
||||
}
|
||||
Todo9::RestoreSubject => {
|
||||
|
Loading…
Reference in New Issue
Block a user