vm: duplicate an item in Dup
TestDupByteArray and TestDupInt were failing before this patch.
This commit is contained in:
parent
c596a6b273
commit
60dfa05b19
4 changed files with 86 additions and 1 deletions
|
@ -346,7 +346,7 @@ func (s *Stack) Dup(n int) *Element {
|
|||
}
|
||||
|
||||
return &Element{
|
||||
value: e.value,
|
||||
value: e.value.Dup(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue