John Szakmeister wrote: > Thanks to some help from Oscar Lim, he pointed believed it was > reloading of the ffi module that was causing the assertion: > > https://github.com/Olivine-Labs/busted/issues/369#issuecomment-76624110 > > The short form: some code was added to make Busted clear the > environment and reload modules. This appears to be a problem > for LuaJIT and the ffi module. > > The good news is that I at least have a workaround. I guess > it's another question whether LuaJIT wants to support this kind > of behavior or not. Yes, the FFI module cannot be reloaded. See: //www.freelists.org/post/luajit/BUG-Assertion-failures-when-unloading-and-reloading-the-ffi-package,1 --Mike