Sure you haven't omitted a local which is.

Function assert_msg(ast, msg) local ast_tbl = nil local function _877.