Skip to content

Commit 760ef44

Browse files
committed
Fix bug where a couple of assign operations aren't implemented
1 parent 585a0e4 commit 760ef44

File tree

1 file changed

+9
-2
lines changed
  • crates/runestick/src

1 file changed

+9
-2
lines changed

crates/runestick/src/vm.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,9 @@ impl Vm {
954954
}));
955955
}
956956

957+
// Calling index set should not produce a value on the stack, but all
958+
// handler functions to produce a value. So pop it here.
959+
self.stack.pop()?;
957960
Ok(())
958961
}
959962

@@ -2537,7 +2540,8 @@ impl Vm {
25372540
}));
25382541
}
25392542

2540-
self.stack.pop()?;
2543+
let value = self.stack.pop()?;
2544+
<()>::from_value(value)?;
25412545
Ok(())
25422546
}
25432547

@@ -2633,7 +2637,8 @@ impl Vm {
26332637
}));
26342638
}
26352639

2636-
self.stack.pop()?;
2640+
let value = self.stack.pop()?;
2641+
<()>::from_value(value)?;
26372642
Ok(())
26382643
}
26392644

@@ -2696,6 +2701,8 @@ impl Vm {
26962701
}));
26972702
}
26982703

2704+
let value = self.stack.pop()?;
2705+
<()>::from_value(value)?;
26992706
Ok(())
27002707
}
27012708

0 commit comments

Comments
 (0)