diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-09 04:37:16 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-09 04:37:16 -0700 |
| commit | 2f1c0284fe81446a603ad0e00fcf5137596156cf (patch) | |
| tree | ff7ab9ae8978fb77353ba6d6cb2647d2c1428a60 | |
| parent | 286b421f0e2ec4cfa713f1c3698ed465509dfeb1 (diff) | |
Test fix.
| -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) |
