aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-09 04:37:16 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-09 04:37:16 -0700
commit2f1c0284fe81446a603ad0e00fcf5137596156cf (patch)
treeff7ab9ae8978fb77353ba6d6cb2647d2c1428a60 /nomsu.moon
parent286b421f0e2ec4cfa713f1c3698ed465509dfeb1 (diff)
Test fix.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 4728c91..bf5c979 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -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)