This commit is contained in:
Bruce Hill 2017-10-04 19:40:44 -07:00
parent 8d95dc74a7
commit 7f9a08f3d6

View File

@ -2,5 +2,7 @@ require "lib/core.nom"
rule [cap at %num instructions] =:
lua code ".."
|print("capped at", \(%num))
|local f = function() error("timeout") end
|local f = function()
| nomsu:error("Execution quota exceeded. Your code took too long.")
|end
|debug.sethook(f, "", \(%num))