From 3a90dc3319115aa4d4e26b890d44689819a9d477 Mon Sep 17 00:00:00 2001 From: kikito Date: Tue, 3 Sep 2013 13:15:47 +0200 Subject: [PATCH] cleanup --- sandbox.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sandbox.lua b/sandbox.lua index 98fde7f..b663ca9 100644 --- a/sandbox.lua +++ b/sandbox.lua @@ -76,19 +76,14 @@ local function run(f, options) end end debug.sethook(timeout, "", step) - string.rep = nil local ok, result = pcall(f) cleanup() - if not ok then error(result) end return result end -local sandbox = { run = run } - - -return setmetatable(sandbox, {__call = function(_,f,o) return run(f,o) end}) +return setmetatable({run = run}, {__call = function(_,f,o) return run(f,o) end})