aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why not revoce erridx whe panic occured?

ray2011 opened this issue · comments

image

L.Remove(err_idx) not executed when panic occurred, it will stay in the stack, make stack grow

image
This is an example, make stack top bigger

It doesn't matter, anything that was pushed on the stack between pcall and the point where the exception happens will be leaked forever. Duplicate of #24