summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/sandbox.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-18 19:57:22 +0800
committerruki <[email protected]>2016-03-18 19:57:22 +0800
commit7ff5704f835df20b79db4f672204df9a562058aa (patch)
tree936db6ad6da98ae0f97efb45663e933eb54be5a5 /xmake/core/sandbox/sandbox.lua
parent34d77b966b9640673b4a6d23758b3d9f51cb1169 (diff)
remove install and package from platform
Diffstat (limited to 'xmake/core/sandbox/sandbox.lua')
-rw-r--r--xmake/core/sandbox/sandbox.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/core/sandbox/sandbox.lua b/xmake/core/sandbox/sandbox.lua
index 96950ee0b..244f1032d 100644
--- a/xmake/core/sandbox/sandbox.lua
+++ b/xmake/core/sandbox/sandbox.lua
@@ -89,11 +89,7 @@ function sandbox._init()
local instance = {_PUBLIC = {}, _PRIVATE = {}}
-- inherit the interfaces of sandbox
- for k, v in pairs(sandbox) do
- if type(v) == "function" then
- instance[k] = v
- end
- end
+ table.inherit2(instance, sandbox)
-- load builtin module files
local builtin_module_files = os.match(path.join(xmake._CORE_DIR, "sandbox/modules/*.lua"))