diff options
| author | ruki <[email protected]> | 2016-03-26 20:51:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-26 20:51:35 +0800 |
| commit | f599ffc2ca8f452b70e2fb928816c5b78302ee1b (patch) | |
| tree | 59cf1fa8ad1cc2a9013641fac59e42d52cabb64e /xmake/core/project/task.lua | |
| parent | 2d269f2eb8a61c7b4225a766ceedec4fd1858e95 (diff) | |
modify self interfaces
Diffstat (limited to 'xmake/core/project/task.lua')
| -rw-r--r-- | xmake/core/project/task.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
