0fdecfb2df
This adds a cyclic dependency between the function used for the weak signal and an object with a __gc metamethod. The problem occurs since the GC will first finalize the object (call its __gc metamethod) and only in the next generation will it actually collect the garbage and remove the functions from weak-tables using it as a key. And yes this needs special code for Lua 5.1 because there __gc doesn't work on tables. :-( Signed-off-by: Uli Schlachter <psychon@znc.in> |
||
---|---|---|
.. | ||
cache_spec.lua | ||
color_spec.lua | ||
matrix_spec.lua | ||
object_spec.lua | ||
sort_spec.lua |