mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Update this-mutability of yield*
This commit is contained in:
@@ -50,15 +50,14 @@ pub fn instruction_mutates_this(instruction: &Instruction) -> bool {
|
||||
| ConstSubCall(_, _, _, reg)
|
||||
| ThisSubCall(_, _, _, reg)
|
||||
| Cat(_, reg)
|
||||
| Yield(_, reg)
|
||||
| YieldStar(_, reg) => reg == &Register::This,
|
||||
| Yield(_, reg) => reg == &Register::This,
|
||||
|
||||
Next(iter, res) => iter == &Register::This || res == &Register::This,
|
||||
UnpackIterRes(_, value_reg, done_reg) => {
|
||||
value_reg == &Register::This || done_reg == &Register::This
|
||||
}
|
||||
|
||||
Apply(_, ctx, _, reg) | SubCall(ctx, _, _, reg) => {
|
||||
Apply(_, ctx, _, reg) | SubCall(ctx, _, _, reg) | YieldStar(ctx, reg) => {
|
||||
reg == &Register::This
|
||||
|| match ctx {
|
||||
Value::Register(reg) => reg == &Register::This,
|
||||
|
||||
Reference in New Issue
Block a user