vm: duplicate an item in Dup

TestDupByteArray and TestDupInt were failing before this patch.
This commit is contained in:
Roman Khimov 2019-12-17 16:38:42 +03:00
parent c596a6b273
commit 60dfa05b19
4 changed files with 86 additions and 1 deletions

View file

@ -346,7 +346,7 @@ func (s *Stack) Dup(n int) *Element {
}
return &Element{
value: e.value,
value: e.value.Dup(),
}
}