lunarmodules / busted

Elegant Lua unit testing.
https://lunarmodules.github.io/busted/
MIT License
1.41k stars 186 forks source link

fix(luajit): ensure that ffi loaded libs will not get GC'ed #711

Closed Tieske closed 1 year ago

Tieske commented 1 year ago

This caused an issue when busted would clear _G and the lib was unloaded whilst userdata's were still floating around with references to the now unloaded lib. This caused segfaults.

Tieske commented 1 year ago

I'll merge this shortly, waiting for some extra confirmation it solved the issue

Tieske commented 1 year ago

confirmed!