Partially implement yield*

This commit is contained in:
Andrew Morris
2023-06-01 17:28:31 +10:00
parent 6b2404119e
commit 97ac17e917
4 changed files with 7 additions and 1 deletions

View File

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