summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/sandbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/sandbox/sandbox.lua')
-rw-r--r--xmake/core/sandbox/sandbox.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/xmake/core/sandbox/sandbox.lua b/xmake/core/sandbox/sandbox.lua
index 1e0817a4e..9bad3eb9f 100644
--- a/xmake/core/sandbox/sandbox.lua
+++ b/xmake/core/sandbox/sandbox.lua
@@ -79,12 +79,8 @@ function sandbox._traceback(errors)
else
results = results .. string.format(" [%s:%d]:\n", info.short_src, info.currentline)
end
-
- -- next
level = level + 1
end
-
- -- ok?
return results
end
@@ -118,20 +114,13 @@ end
-- new a sandbox instance with the given script
function sandbox.new(script, filter, rootdir)
-
- -- check
assert(script)
-- new instance
local self = sandbox._new()
-
- -- check
assert(self and self._PUBLIC and self._PRIVATE)
- -- save filter
self._PRIVATE._FILTER = filter
-
- -- save root directory
self._PRIVATE._ROOTDIR = rootdir
-- invalid script?