reset cache before work_swap

This commit is contained in:
Philip Quirk 2023-12-05 21:18:02 -06:00
parent 9774da7b64
commit e7d76a3818

View File

@ -450,6 +450,7 @@ fn work_swap(context: &mut Context, job: Noun, goof: Noun) {
clear_interrupt();
let stack = &mut context.nock_context.stack;
context.nock_context.cache = Hamt::<Noun>::new();
// crud ovo = [+(now) [%$ %arvo ~] [%crud goof ovo]]
let job_cell = job.as_cell().expect("serf: work: job not a cell");
let job_now = job_cell.head().as_atom().expect("serf: work: now not atom");