From dfda34254c44f9f8aa16ad556a88ec275ec50a16 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 14:37:38 -0700 Subject: More robust scanning --- error_handling.moon | 1 + 1 file changed, 1 insertion(+) (limited to 'error_handling.moon') diff --git a/error_handling.moon b/error_handling.moon index d6a0881..ea126e8 100644 --- a/error_handling.moon +++ b/error_handling.moon @@ -106,6 +106,7 @@ enhance_error = (error_message)-> -- Globals and global compile rules: scan = (t, is_lua_id)-> + return unless t for k,v in pairs(t) if type(k) == 'string' and type(v) == 'function' k = k\from_lua_id! unless is_lua_id -- cgit v1.2.3