The script editor emits a warning when using collectgarbage, stating that it’s deprecated and to use gcinfo instead.
However, the Lua 5.1 manual states the opposite
Function
collectgarbage
has different arguments. Functiongcinfo
is deprecated; usecollectgarbage("count")
instead.
It would be odd to undeprecate the deprecated function and deprecate the non-deprecated function, so this seems like a bug.
I just noticed this today (version 0.451.0.412446
), but I’m not sure how long it’s been a problem.