From f599ffc2ca8f452b70e2fb928816c5b78302ee1b Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 26 Mar 2016 20:51:35 +0800 Subject: modify self interfaces --- xmake/core/project/task.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmake/core/project/task.lua') diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua index b4664e66a..eb93012b2 100644 --- a/xmake/core/project/task.lua +++ b/xmake/core/project/task.lua @@ -52,7 +52,7 @@ function task._interpreter() end -- init interpreter - local interp = interpreter.init() + local interp = interpreter.new() assert(interp) -- register api: task() @@ -137,7 +137,7 @@ function task._bind(tasks) if type(opt) == "function" then -- make sandbox instance with the given script - local instance, errors = sandbox.make(opt, interp) + local instance, errors = sandbox.new(opt, interp) if not instance then return false, errors end @@ -169,7 +169,7 @@ function task._bind(tasks) if type(description) == "function" then -- make sandbox instance with the given script - local instance, errors = sandbox.make(description, interp) + local instance, errors = sandbox.new(description, interp) if not instance then return false, errors end -- cgit v1.3.1