diff options
| -rw-r--r-- | nomsu.lua | 1 | ||||
| -rwxr-xr-x | nomsu.moon | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -339,6 +339,7 @@ do if max_operations then local timeout timeout = function() + debug.sethook() return self:error("Execution quota exceeded. Your code took too long.") end debug.sethook(timeout, "", max_operations) @@ -277,6 +277,7 @@ class NomsuCompiler run: (src, filename, max_operations=nil)=> if max_operations timeout = -> + debug.sethook! @error "Execution quota exceeded. Your code took too long." debug.sethook timeout, "", max_operations tree = @parse(src, filename) |
