参数
string
必填
要搜索的 GC object type。该值会转换为 lowercase,并且必须是 “table” 或 “function”。
table
必填
Filter table。function searches 读取 Name, Hash, StartLine, IgnoreExecutor, IgnoreSyn, Environment, Constants, Upvalues。table searches 读取 Metatable, Keys, Values, KeyValuePairs。
boolean
Optional optional boolean handling flag。为 true 时,返回第一个 matching object 或 nil,而不是 array table。
返回值
table | function | nil
当 returnOne 为 false 或 omitted 时,返回 array table of matches。当 returnOne 为 true 时,返回第一个 matching table/function object 或 nil。