vm: store exception stack in the context

Avoid allocating it.
This commit is contained in:
Roman Khimov 2021-08-20 23:11:59 +03:00
parent d3198c3082
commit ed35cf8f12
3 changed files with 5 additions and 4 deletions

View file

@ -171,6 +171,7 @@ func initStack(s *Stack, n string, refc *refCounter) {
s.refs = refc
s.top.next = &s.top
s.top.prev = &s.top
s.len = 0
}
// Clear clears all elements on the stack and set its length to 0.