diff --git a/function.lua b/function.lua index ec36f3e..94fc351 100644 --- a/function.lua +++ b/function.lua @@ -249,13 +249,14 @@ return function (value, depth, l, format_value) if info.defined_how == 'string' then -- Function was defined as a string - local params, body = get_function_paramlist_and_body(info) + local _, body = get_function_paramlist_and_body(info) if #body <= NR_CHARS_IN_LONG_FUNCTION_BODY and not body:find '\n' then - function_params, function_body = params, body + function_body = body end end if info.builtin and l.options.short_builtins then + assert(info.name) return l(info.name); end