diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-11-01 20:11:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-11-01 20:11:44 -0700 |
| commit | 8c0816995afaaf34cbfe903e6da68d8b6d8e8c39 (patch) | |
| tree | 2d57c275f42facba3163ef665e386c8fcf67f646 | |
| parent | 3ae1f696aa86665b3b41f30a677944d12d29f025 (diff) | |
Added empty string check.
| -rw-r--r-- | nomsu.lua | 3 | ||||
| -rwxr-xr-x | nomsu.moon | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -424,6 +424,9 @@ do if max_operations == nil then max_operations = nil end + if src == "" then + return nil, "", vars + end if max_operations then local timeout timeout = function() @@ -323,6 +323,7 @@ class NomsuCompiler return tree run: (src, filename, vars={}, max_operations=nil)=> + if src == "" then return nil, "", vars if max_operations timeout = -> debug.sethook! |
