Generators now work

This commit is contained in:
Andrew Morris
2023-06-01 11:53:36 +10:00
parent 95e702b85e
commit 5712221cd6
5 changed files with 39 additions and 2 deletions

View File

@@ -553,7 +553,10 @@ impl StackFrameTrait for BytecodeStackFrame {
}
Yield => {
panic!("TODO: yield");
let val = self.decoder.decode_val(&self.registers);
self.decoder.decode_register_index(); // TODO: Use this
return Ok(FrameStepOk::Yield(val));
}
YieldStar => {